From 1757627af3a88d10451990fe7fe83488a3c8e11e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 16 Nov 2004 17:30:45 +0000 Subject: [PATCH] Now hidden sections are hidden completely from student view if "invisible sections" are configured in course settings. Patch sent by Geoff Wilbert. Thanks! See Bug 2185 (http://moodle.org/bugs/bug.php?op=show&bugid=2185) Merged from MOODLE_14_STABLE --- course/user.php | 112 ++++++++++++++++++++++++------------------------ 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/course/user.php b/course/user.php index 0a08005905..dcc222b230 100644 --- a/course/user.php +++ b/course/user.php @@ -93,72 +93,74 @@ if (isset($sections[$i])) { // should always be true $section = $sections[$i]; - - if ($section->sequence) { - echo "
"; - echo "

"; - switch ($course->format) { - case "weeks": print_string("week"); break; - case "topics": print_string("topic"); break; - default: print_string("section"); break; - } - echo " $i

"; - - echo ""; } - - if ($mode == "outline") { - echo ""; - print_simple_box_end(); - } - echo ""; - - } } } -- 2.39.5