]> git.mjollnir.org Git - moodle.git/commitdiff
navigation MDL-20735 Activities added to the front page topic section were not being...
authorSam Hemelryk <sam@moodle.com>
Tue, 15 Dec 2009 01:38:40 +0000 (01:38 +0000)
committerSam Hemelryk <sam@moodle.com>
Tue, 15 Dec 2009 01:38:40 +0000 (01:38 +0000)
lib/navigationlib.php

index 880fa2e9128c83b2cc384d348ba62f811881d071..270f1f65051492949c3e3bb24942a6517881f70a 100644 (file)
@@ -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) {