mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-48070 navbar: ensure navigation initialised
This commit is contained in:
parent
aac8dfa8b6
commit
699f60c6f7
1 changed files with 3 additions and 0 deletions
|
@ -3152,6 +3152,9 @@ class navbar extends navigation_node {
|
||||||
|
|
||||||
// Check if navigation contains the active node
|
// Check if navigation contains the active node
|
||||||
if (!$this->ignoreactive) {
|
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();
|
$navigationactivenode = $this->page->navigation->find_active_node();
|
||||||
$settingsactivenode = $this->page->settingsnav->find_active_node();
|
$settingsactivenode = $this->page->settingsnav->find_active_node();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue