New feature: hide/show topics!

This commit is contained in:
moodler 2003-05-04 07:59:46 +00:00
parent 81ed361792
commit 7d99d6959e
8 changed files with 105 additions and 44 deletions

View file

@ -44,6 +44,14 @@
}
}
if (isset($hide)) {
set_section_visible($course->id, $hide, "0");
}
if (isset($show)) {
set_section_visible($course->id, $show, "1");
}
$SESSION->fromdiscussion = "$CFG->wwwroot/course/view.php?id=$course->id";
if (! $course->category) { // This course is not a real course.
@ -76,6 +84,7 @@
}
}
switch ($course->format) {
case "weeks":
include("weeks.php");