Merge branch 'wip-MDL-27958-master' of git://github.com/samhemelryk/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 23 Jun 2011 21:57:55 +0000 (23:57 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 23 Jun 2011 21:57:55 +0000 (23:57 +0200)
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);
+$PAGE->set_context($context);
 
 $args = array('contextid'=>$contextid);
 $baseurl = new moodle_url('/filter/manage.php', $args);