fixed invalid context creation call

This commit is contained in:
Petr Skoda 2010-09-18 11:19:37 +00:00
parent 2343f963da
commit 7875b1fdfd

View File

@ -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();