MDL-27958 Added missing set_context call which would cause errors for all contexts...
authorSam Hemelryk <sam@moodle.com>
Thu, 23 Jun 2011 04:16:09 +0000 (12:16 +0800)
committerSam Hemelryk <sam@moodle.com>
Thu, 23 Jun 2011 04:16:09 +0000 (12:16 +0800)
filter/manage.php

index 6e65895..943c7fc 100644 (file)
@@ -34,6 +34,7 @@ list($context, $course, $cm) = get_context_info_array($contextid);
 /// Check login and permissions.
 require_login($course, false, $cm);
 require_capability('moodle/filter:manage', $context);
 /// Check login and permissions.
 require_login($course, false, $cm);
 require_capability('moodle/filter:manage', $context);
+$PAGE->set_context($context);
 
 $args = array('contextid'=>$contextid);
 $baseurl = new moodle_url('/filter/manage.php', $args);
 
 $args = array('contextid'=>$contextid);
 $baseurl = new moodle_url('/filter/manage.php', $args);