From 17f950eb0d2e6e6afc85cb2df459bb54d8cd6cb8 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 4 Aug 2009 09:33:43 +0000 Subject: [PATCH] category blocks MDL-19398 Set the proper context on the course category pages so blocks work properly --- course/category.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/category.php b/course/category.php index 171d6d9a76..ee2f2e71a3 100644 --- a/course/category.php +++ b/course/category.php @@ -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'); -- 2.39.5