]> git.mjollnir.org Git - moodle.git/commit
accesslib: simplify and speedup create_context()
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:56 +0000 (07:12 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:12:56 +0000 (07:12 +0000)
commit4881f2d329a78576aad6cbf5c2b54a862c3cda54
treeb5f9eb0699ed09f0ab16a74384157d40cdad17c2
parent3d3def3a4e6290c45849243ae72ab1e6aee999ba
accesslib: simplify and speedup create_context()

Callers _must_ do their homework before calling create_context().
This allows us to save 2/3 queries per call (!!!).

As it stands, callers are all in accesslib anyway.
lib/accesslib.php