]> git.mjollnir.org Git - moodle.git/commitdiff
category blocks MDL-19398 Set the proper context on the course category pages so...
authormoodler <moodler>
Tue, 4 Aug 2009 09:33:43 +0000 (09:33 +0000)
committermoodler <moodler>
Tue, 4 Aug 2009 09:33:43 +0000 (09:33 +0000)
course/category.php

index 171d6d9a7651c4d4a6d742e406d09a2f651764f5..ee2f2e71a3c3539d970d25aed139bac9afb3e6c8 100644 (file)
         // 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');