mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
fixed invalid context creation call
This commit is contained in:
parent
2343f963da
commit
7875b1fdfd
1 changed files with 1 additions and 1 deletions
|
@ -1686,7 +1686,7 @@ function create_context($contextlevel, $instanceid, $strictness=IGNORE_MISSING)
|
||||||
global $CFG, $DB;
|
global $CFG, $DB;
|
||||||
|
|
||||||
if ($contextlevel == CONTEXT_SYSTEM) {
|
if ($contextlevel == CONTEXT_SYSTEM) {
|
||||||
return create_system_context();
|
return get_system_context();
|
||||||
}
|
}
|
||||||
|
|
||||||
$context = new object();
|
$context = new object();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue