]> git.mjollnir.org Git - moodle.git/commitdiff
Small change in navmenu() to hide hiddensections,
authorstronk7 <stronk7>
Sat, 1 May 2004 23:46:02 +0000 (23:46 +0000)
committerstronk7 <stronk7>
Sat, 1 May 2004 23:46:02 +0000 (23:46 +0000)
aplying latest Martin's changes... Ciao :-)

lib/weblib.php

index 952cc50af5d79fee11d79c8ba9feb7e203fae7b6..6d98074d5565728e990792c919d0f5f87b5817f8 100644 (file)
@@ -1798,7 +1798,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
 
         if ($mod->section > 0 and $section <> $mod->section) {
             //Only add if visible or collapsed or teacher or course format = weeks
-            if ($sectionrecs[$mod->section]->visible or $course->hiddentopics == 0 or $isteacher or $course->format == 'weeks') {
+            if ($sectionrecs[$mod->section]->visible or !$course->hiddensections or $isteacher) {
                 $menu[] = "-------------- $strsection $mod->section --------------";
             }
         }