Skip to content

Commit

Permalink
MDL-27958 Added missing set_context call which would cause errors for…
Browse files Browse the repository at this point in the history
… all contexts below course
  • Loading branch information
Sam Hemelryk committed Jun 23, 2011
1 parent cc50a2f commit d072124
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filter/manage.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/// Check login and permissions. /// Check login and permissions.
require_login($course, false, $cm); require_login($course, false, $cm);
require_capability('moodle/filter:manage', $context); require_capability('moodle/filter:manage', $context);
$PAGE->set_context($context);


$args = array('contextid'=>$contextid); $args = array('contextid'=>$contextid);
$baseurl = new moodle_url('/filter/manage.php', $args); $baseurl = new moodle_url('/filter/manage.php', $args);
Expand Down

0 comments on commit d072124

Please sign in to comment.