Skip to content

Commit

Permalink
Merge branch 'MDL-74522-400' of https://github.com/devlionco/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_400_STABLE
  • Loading branch information
andrewnicols committed Jun 30, 2022
2 parents db9a86f + b5f4e35 commit b59920c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/classes/navigation/views/primary.php
Expand Up @@ -68,7 +68,7 @@ public function initialise(): void {
$showcoursesnode = empty($this->page->theme->removedprimarynavitems) ||
!in_array('courses', $this->page->theme->removedprimarynavitems);
if ($showcoursesnode) {
$this->add(get_string('mycourses'), new \moodle_url('/my/courses.php'), self::TYPE_ROOTNODE, null, 'courses');
$this->add(get_string('mycourses'), new \moodle_url('/my/courses.php'), self::TYPE_ROOTNODE, null, 'mycourses');
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/tests/navigation/views/primary_test.php
Expand Up @@ -62,8 +62,8 @@ public function test_setting_initialise($usertype, $expected) {
public function test_setting_initialise_provider() {
return [
'Testing as a guest user' => ['guest', ['home']],
'Testing as an admin' => ['admin', ['home', 'myhome', 'courses', 'siteadminnode']],
'Testing as a regular user' => ['user', ['home', 'myhome', 'courses']]
'Testing as an admin' => ['admin', ['home', 'myhome', 'mycourses', 'siteadminnode']],
'Testing as a regular user' => ['user', ['home', 'myhome', 'mycourses']]
];
}

Expand Down

0 comments on commit b59920c

Please sign in to comment.