mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-56612 navigation: Remove redundant load_courses_enrolled call
This commit is contained in:
parent
cd4a6b8b0b
commit
57c01bca0e
@ -1246,11 +1246,7 @@ class global_navigation extends navigation_node {
|
|||||||
} else {
|
} else {
|
||||||
$this->rootnodes['courses']->isexpandable = true;
|
$this->rootnodes['courses']->isexpandable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the users enrolled courses if they are viewing the My Moodle page AND the admin has not
|
|
||||||
// set that they wish to keep the My Courses branch collapsed by default.
|
|
||||||
$this->rootnodes['mycourses']->forceopen = true;
|
$this->rootnodes['mycourses']->forceopen = true;
|
||||||
$this->load_courses_enrolled();
|
|
||||||
|
|
||||||
$canviewcourseprofile = true;
|
$canviewcourseprofile = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user