From: Sam Hemelryk Date: Tue, 15 Dec 2009 01:38:40 +0000 (+0000) Subject: navigation MDL-20735 Activities added to the front page topic section were not being... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a9da131e0b1b31ff722ab061b9b169b5decaea9c;p=moodle.git navigation MDL-20735 Activities added to the front page topic section were not being included in nav --- diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 880fa2e912..270f1f6505 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -1168,7 +1168,9 @@ class global_navigation extends navigation_node { } } $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); $child = $this->find_child($module->id, $type); if ($child != false) {