fixed missing global $CONTEXT in get_context_instance()

This commit is contained in:
skodak 2006-08-25 14:15:52 +00:00
parent 64d8092342
commit 51195e6f9f

View File

@ -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)) {