mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
New feature: hide/show topics!
This commit is contained in:
parent
81ed361792
commit
7d99d6959e
8 changed files with 105 additions and 44 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue