mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Small change in navmenu() to hide hiddensections,
aplying latest Martin's changes... Ciao :-)
This commit is contained in:
parent
396b61f00a
commit
67591c6706
1 changed files with 1 additions and 1 deletions
|
@ -1798,7 +1798,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
|
||||||
|
|
||||||
if ($mod->section > 0 and $section <> $mod->section) {
|
if ($mod->section > 0 and $section <> $mod->section) {
|
||||||
//Only add if visible or collapsed or teacher or course format = weeks
|
//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 --------------";
|
$menu[] = "-------------- $strsection $mod->section --------------";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue