Merge branch 'wip-mdl-32270' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
@@ -1038,7 +1038,7 @@ class global_navigation extends navigation_node {
|
||||
} else {
|
||||
// The home element should be the site because the root node is my moodle
|
||||
$this->rootnodes['home'] = $this->add(get_string('sitehome'), new moodle_url('/'), self::TYPE_SETTING, null, 'home');
|
||||
if ($CFG->defaulthomepage == HOMEPAGE_MY) {
|
||||
if (!empty($CFG->defaulthomepage) && ($CFG->defaulthomepage == HOMEPAGE_MY)) {
|
||||
// We need to stop automatic redirection
|
||||
$this->rootnodes['home']->action->param('redirect', '0');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user