From 51195e6f9f55256a19321bb6c24a1e42dd5685c6 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 25 Aug 2006 14:15:52 +0000 Subject: [PATCH] fixed missing global $CONTEXT in get_context_instance() --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 270b96fab7..28463b5447 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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)) { -- 2.39.5