Browse files

MDL-37290 course: fixed up navbar when editing categories

  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Dec 24, 2012
1 parent 0dc5a53 commit 3330e653545db4bff0083db0b3936df672842be5
Showing with 1 addition and 0 deletions.
  1. +1 −0 course/category.php
@@ -191,6 +191,7 @@
// Integrate into the admin tree only if the user can edit categories at the top level,
// otherwise the admin block does not appear to this user, and you get an error.
require_once($CFG->libdir . '/adminlib.php');
+ navigation_node::override_active_url(new moodle_url('/course/category.php', array('id' => $id)));
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

0 comments on commit 3330e65

Please sign in to comment.