Commit a9da131e authored by Sam Hemelryk's avatar Sam Hemelryk
Browse files

navigation MDL-20735 Activities added to the front page topic section were not...

navigation MDL-20735 Activities added to the front page topic section were not being included in nav
parent f7af85b3
...@@ -1168,7 +1168,9 @@ class global_navigation extends navigation_node { ...@@ -1168,7 +1168,9 @@ class global_navigation extends navigation_node {
} }
} }
$path = $keys; $path = $keys;
$path[] = $sections[$module->sectionnum]->id; if ($course->id !== SITEID) {
$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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment