Merge branch 'MDL-59813-master' of git://github.com/farhan6318/moodle

This commit is contained in:
David Monllao 2018-01-02 09:03:03 +01:00
commit 6ffb51e74c

View File

@ -3025,7 +3025,7 @@ class global_navigation extends navigation_node {
// Show a link to the course page if there are more courses the user is enrolled in.
if ($showmorelinkinnav || $showmorelinkinflatnav) {
// Adding hash to URL so the link is not highlighted in the navigation when clicked.
$url = new moodle_url('/course/index.php#');
$url = new moodle_url('/my/?myoverviewtab=courses');
$parent = $this->rootnodes['mycourses'];
$coursenode = $parent->add(get_string('morenavigationlinks'), $url, self::TYPE_CUSTOM, null, self::COURSE_INDEX_PAGE);