mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
navigation MDL-20735 Activities added to the front page topic section were not being included in nav
This commit is contained in:
parent
f7af85b32b
commit
a9da131e0b
1 changed files with 3 additions and 1 deletions
|
@ -1168,7 +1168,9 @@ class global_navigation extends navigation_node {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$path = $keys;
|
$path = $keys;
|
||||||
|
if ($course->id !== SITEID) {
|
||||||
$path[] = $sections[$module->sectionnum]->id;
|
$path[] = $sections[$module->sectionnum]->id;
|
||||||
|
}
|
||||||
$this->add_to_path($path, $module->id, $module->name, $module->name, $type, $url, $icon);
|
$this->add_to_path($path, $module->id, $module->name, $module->name, $type, $url, $icon);
|
||||||
$child = $this->find_child($module->id, $type);
|
$child = $this->find_child($module->id, $type);
|
||||||
if ($child != false) {
|
if ($child != false) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue