MDL-27958 Added missing set_context call which would cause errors for all contexts below course

This commit is contained in:
Sam Hemelryk 2011-06-23 12:16:09 +08:00
parent 3552484b91
commit 7313ac6c7a

View 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);
$PAGE->set_context($context);
$args = array('contextid'=>$contextid);
$baseurl = new moodle_url('/filter/manage.php', $args);