mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
navigation MDL-22044 Fixed bug: when not logged in it is now home not my home. Thanks Eloy for spotting
This commit is contained in:
parent
edea3f97cc
commit
dd8e50113a
@ -775,6 +775,10 @@ class global_navigation extends navigation_node {
|
||||
'text' => get_string('myhome'),
|
||||
'action' => new moodle_url('/my/')
|
||||
);
|
||||
if (!isloggedin()) {
|
||||
$properties['text'] = get_string('home');
|
||||
$properties['action'] = new moodle_url('/');
|
||||
}
|
||||
parent::__construct($properties);
|
||||
|
||||
// Initalise and set defaults
|
||||
@ -926,7 +930,6 @@ class global_navigation extends navigation_node {
|
||||
foreach ($children as $child) {
|
||||
$this->children->add($child);
|
||||
}
|
||||
$this->action = new moodle_url('/');
|
||||
}
|
||||
|
||||
$this->initialised = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user