mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fixed missing global $CONTEXT in get_context_instance()
This commit is contained in:
parent
64d8092342
commit
51195e6f9f
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user