mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fixed invalid context creation call
This commit is contained in:
parent
2343f963da
commit
7875b1fdfd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user