mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-48070 navbar: ensure navigation initialised
This commit is contained in:
parent
aac8dfa8b6
commit
699f60c6f7
@ -3152,6 +3152,9 @@ class navbar extends navigation_node {
|
||||
|
||||
// Check if navigation contains the active node
|
||||
if (!$this->ignoreactive) {
|
||||
// We will need to ensure the navigation has been initialised.
|
||||
$this->page->navigation->initialise($this->page);
|
||||
// Now find the active nodes on both the navigation and settings.
|
||||
$navigationactivenode = $this->page->navigation->find_active_node();
|
||||
$settingsactivenode = $this->page->settingsnav->find_active_node();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user