category blocks MDL-19398 Set the proper context on the course category pages so blocks work properly

This commit is contained in:
moodler
2009-08-04 09:33:43 +00:00
parent 0affac4d65
commit 17f950eb0d
+1
View File
@@ -152,6 +152,7 @@
// otherwise the admin block does not appear to this user, and you get an error.
require_once($CFG->libdir . '/adminlib.php');
admin_externalpage_setup('coursemgmt', '', $urlparams, $CFG->wwwroot . '/course/category.php');
$PAGE->set_context($context); // Ensure that we are actually showing blocks etc for the cat context
admin_externalpage_print_header();
} else {
$navbaritem = print_course_search('', true, 'navbar');