X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=lib%2Fnavigationlib.php;h=2ab7dde423b199528c129f8e7ba2d9db2df8fa71;hp=121b4329016afd3104f70e62222476e5bbab416a;hb=83f78f8dac061ed3d861daf0b127dce4387ac44b;hpb=2ad2ad0915c890548b3339107af8b51581cf5af3 diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 121b4329016..2ab7dde423b 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -1048,7 +1048,7 @@ class global_navigation extends navigation_node { $this->rootnodes['site'] = $this->add_course($SITE); $this->rootnodes['myprofile'] = $this->add(get_string('myprofile'), null, self::TYPE_USER, null, 'myprofile'); $this->rootnodes['mycourses'] = $this->add(get_string('mycourses'), null, self::TYPE_ROOTNODE, null, 'mycourses'); - $this->rootnodes['courses'] = $this->add(get_string('courses'), null, self::TYPE_ROOTNODE, null, 'courses'); + $this->rootnodes['courses'] = $this->add(get_string('courses'), new moodle_url('/course/index.php'), self::TYPE_ROOTNODE, null, 'courses'); $this->rootnodes['users'] = $this->add(get_string('users'), null, self::TYPE_ROOTNODE, null, 'users'); // Fetch all of the users courses. @@ -3000,9 +3000,11 @@ class settings_navigation extends navigation_node { $url = null; $icon = null; if ($adminbranch instanceof admin_settingpage) { - $url = new moodle_url('/admin/settings.php', array('section'=>$adminbranch->name)); + $url = new moodle_url('/'.$CFG->admin.'/settings.php', array('section'=>$adminbranch->name)); } else if ($adminbranch instanceof admin_externalpage) { $url = $adminbranch->url; + } else if (!empty($CFG->linkadmincategories) && $adminbranch instanceof admin_category) { + $url = new moodle_url('/'.$CFG->admin.'/category.php', array('category' => $adminbranch->name)); } // Add the branch