diff --git a/index.php b/index.php
index c6805867310..10a199fa12b 100644
--- a/index.php
+++ b/index.php
@@ -142,6 +142,7 @@
" class=\"iconsmall\" alt=\"$streditsummary\" />
";
}
+ $courserenderer = $PAGE->get_renderer('core', 'course');
echo $courserenderer->course_section_cm_list($SITE, $section);
echo $courserenderer->course_section_add_cm_control($SITE, $section->section);