From 27456a642252e05266bb64106bb521a67cb34fa8 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Wed, 17 May 2017 08:18:23 +0200 Subject: [PATCH] MDL-58165 navigation: Add node key to private files navigation node --- lib/navigationlib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 13c5ae77f7b..aa29bd931fa 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -2339,7 +2339,7 @@ class global_navigation extends navigation_node { // This link doesn't have a unique display for course context so only display it under the user's profile. if ($issitecourse && $iscurrentuser && has_capability('moodle/user:manageownfiles', $usercontext)) { $url = new moodle_url('/user/files.php'); - $usernode->add(get_string('privatefiles'), $url, self::TYPE_SETTING); + $usernode->add(get_string('privatefiles'), $url, self::TYPE_SETTING, null, 'privatefiles'); } // Add a node to view the users notes if permitted. @@ -2775,7 +2775,7 @@ class global_navigation extends navigation_node { $usercontext = context_user::instance($USER->id); if (has_capability('moodle/user:manageownfiles', $usercontext)) { $url = new moodle_url('/user/files.php'); - $node = $coursenode->add(get_string('privatefiles'), $url, self::TYPE_SETTING); + $node = $coursenode->add(get_string('privatefiles'), $url, self::TYPE_SETTING, null, 'privatefiles'); $node->display = false; $node->showinflatnavigation = true; } @@ -4677,7 +4677,7 @@ class settings_navigation extends navigation_node { // This link doesn't have a unique display for course context so only display it under the user's profile. if ($issitecourse && $iscurrentuser && has_capability('moodle/user:manageownfiles', $usercontext)) { $url = new moodle_url('/user/files.php'); - $dashboard->add(get_string('privatefiles'), $url, self::TYPE_SETTING); + $dashboard->add(get_string('privatefiles'), $url, self::TYPE_SETTING, null, 'privatefiles'); } // Add a node to view the users notes if permitted.