]> git.mjollnir.org Git - moodle.git/commit
accesslib: create_context() now populates the path of new contexts
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:13:08 +0000 (07:13 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:13:08 +0000 (07:13 +0000)
commite40413befa08e2b2b5669bff2e11bd25dfa4b2c0
treedd3c1de3293c0b139062d4bff30b18d43be3c646
parent4881f2d329a78576aad6cbf5c2b54a862c3cda54
accesslib: create_context() now populates the path of new contexts

... and it populates the context cache too.

Unfortunately, it needs an INSERT followed by an UPDATE. Other than
a stored procedure, I don't know how to deal with this better.

(We could save the SELECT though! that's a thought...)

OTOH, we are getting so much mileage out of the path field
that it's probably a hit we have to take in the chin and move on.
lib/accesslib.php