fixed invalid context creation call
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:19:37 +0000 (11:19 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:19:37 +0000 (11:19 +0000)
lib/accesslib.php

index 7675457..0897175 100755 (executable)
@@ -1686,7 +1686,7 @@ function create_context($contextlevel, $instanceid, $strictness=IGNORE_MISSING)
     global $CFG, $DB;
 
     if ($contextlevel == CONTEXT_SYSTEM) {
-        return create_system_context();
+        return get_system_context();
     }
 
     $context = new object();