From 7313ac6c7af62bf86ca8c101e96aedc72873312e Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 23 Jun 2011 12:16:09 +0800 Subject: [PATCH] MDL-27958 Added missing set_context call which would cause errors for all contexts below course --- filter/manage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/filter/manage.php b/filter/manage.php index 6e658955032..943c7fcaea1 100644 --- a/filter/manage.php +++ b/filter/manage.php @@ -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); -- 2.43.0