From 89951f94afba29c3935412eee5c27d3bbb918146 Mon Sep 17 00:00:00 2001 From: Paul Nicholls Date: Wed, 25 May 2016 14:05:14 +1200 Subject: [PATCH] Replace call to deprecated get_all_sections() function get_all_sections() has been deprecated since 2.4. --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();