diff --git a/index.php b/index.php index 33a58d6..2d3b90b 100644 --- a/index.php +++ b/index.php @@ -55,7 +55,8 @@ $usesections = course_format_uses_sections($course->format); if ($usesections) { - $sections = get_all_sections($course->id); + $modinfo = get_fast_modinfo($course->id); + $sections = $modinfo->get_section_info_all(); } $table = new html_table();