]> git.mjollnir.org Git - moodle.git/commitdiff
fixed missing global $CONTEXT in get_context_instance()
authorskodak <skodak>
Fri, 25 Aug 2006 14:15:52 +0000 (14:15 +0000)
committerskodak <skodak>
Fri, 25 Aug 2006 14:15:52 +0000 (14:15 +0000)
lib/accesslib.php

index 270b96fab74738bb2ba9f241c9b425266b7a182b..28463b5447716c26df3b3d43bf4f97ed487107c8 100755 (executable)
@@ -864,7 +864,7 @@ function create_context($aggregatelevel, $instanceid) {
  */
 function get_context_instance($aggregatelevel=NULL, $instance=SITEID) {
 
-    global $context_cache, $context_cache_id;
+    global $context_cache, $context_cache_id, $CONTEXT;
 
 /// If no level is supplied then return the current global context if there is one
     if (empty($aggregatelevel)) {