mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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
This commit is contained in:
parent
3060f68e3d
commit
1757627af3
1 changed files with 59 additions and 57 deletions
|
@ -93,6 +93,9 @@
|
||||||
if (isset($sections[$i])) { // should always be true
|
if (isset($sections[$i])) { // should always be true
|
||||||
|
|
||||||
$section = $sections[$i];
|
$section = $sections[$i];
|
||||||
|
$showsection = (isteacher($course->id) or $section->visible or !$course->hiddensections);
|
||||||
|
|
||||||
|
if ($showsection) { // prevent hidden sections in user activity. Thanks to Geoff Wilbert!
|
||||||
|
|
||||||
if ($section->sequence) {
|
if ($section->sequence) {
|
||||||
echo "<hr />";
|
echo "<hr />";
|
||||||
|
@ -157,8 +160,7 @@
|
||||||
print_simple_box_end();
|
print_simple_box_end();
|
||||||
}
|
}
|
||||||
echo "</ul>";
|
echo "</ul>";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue