From: stronk7 Date: Sat, 1 May 2004 23:46:02 +0000 (+0000) Subject: Small change in navmenu() to hide hiddensections, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=67591c670604d2661be96ef42c0b646e4d7e6380;p=moodle.git Small change in navmenu() to hide hiddensections, aplying latest Martin's changes... Ciao :-) --- diff --git a/lib/weblib.php b/lib/weblib.php index 952cc50af5..6d98074d55 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 --------------"; } }