Permalink
Browse files

MDL-37572 correct active navigation node for add/edit category page

  • Loading branch information...
marinaglancy authored and Sam Hemelryk committed Feb 7, 2013
1 parent 9d093b7 commit 8fd56c194284bb89055010638ff8ab214915f90e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navigationlib.php
View
@@ -4032,7 +4032,7 @@ protected function load_category_settings() {
$categorynode->add($editstring, $url, self::TYPE_SETTING, null, null, new pix_icon('i/edit', ''));
}
- if ($onmanagepage && has_capability('moodle/category:manage', $this->context)) {
+ if (has_capability('moodle/category:manage', $this->context)) {
$editurl = new moodle_url('/course/editcategory.php', array('id' => $this->context->instanceid));
$categorynode->add(get_string('editcategorythis'), $editurl, self::TYPE_SETTING, null, 'edit', new pix_icon('i/edit', ''));

0 comments on commit 8fd56c1

Please sign in to comment.