navigation MDL-20735 Activities added to the front page topic section were not being included in nav

This commit is contained in:
Sam Hemelryk 2009-12-15 01:38:40 +00:00
parent f7af85b32b
commit a9da131e0b

View file

@ -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) {