MDL-37085 added missing get_renderer call
authorMarina Glancy <marina@moodle.com>
Tue, 15 Jan 2013 01:14:31 +0000 (12:14 +1100)
committerMarina Glancy <marina@moodle.com>
Tue, 15 Jan 2013 01:14:31 +0000 (12:14 +1100)
index.php

index c680586..10a199f 100644 (file)
--- a/index.php
+++ b/index.php
                      " class=\"iconsmall\" alt=\"$streditsummary\" /></a><br /><br />";
             }
 
                      " class=\"iconsmall\" alt=\"$streditsummary\" /></a><br /><br />";
             }
 
+            $courserenderer = $PAGE->get_renderer('core', 'course');
             echo $courserenderer->course_section_cm_list($SITE, $section);
 
             echo $courserenderer->course_section_add_cm_control($SITE, $section->section);
             echo $courserenderer->course_section_cm_list($SITE, $section);
 
             echo $courserenderer->course_section_add_cm_control($SITE, $section->section);