MDL-71092 navigation: Update secondary nav to show category context.

This commit is contained in:
Adrian Greeve
2021-09-01 09:08:54 +08:00
parent 206023c15f
commit 67be3393bf
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -5326,7 +5326,7 @@ class settings_navigation extends navigation_node {
if (can_edit_in_category($catcontext->instanceid)) {
$url = new moodle_url('/course/management.php', array('categoryid' => $catcontext->instanceid));
$editstring = get_string('managecategorythis');
$categorynode->add($editstring, $url, self::TYPE_SETTING, null, null, new pix_icon('i/edit', ''));
$categorynode->add($editstring, $url, self::TYPE_SETTING, null, 'managecategory', new pix_icon('i/edit', ''));
}
if (has_capability('moodle/category:manage', $catcontext)) {