Permalink
Browse files

MDL-27958 Added missing set_context call which would cause errors for…

… all contexts below course
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jun 23, 2011
1 parent cc50a2f commit d072124ba45af1ff5cb0ad93ea8b9e6d3f3e537d
Showing with 1 addition and 0 deletions.
  1. +1 −0 filter/manage.php
View
@@ -34,6 +34,7 @@
/// 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);

0 comments on commit d072124

Please sign in to comment.