MDL-37085 Substitute function print_section_add_menus() with core_course_renderer...
[moodle.git] / index.php
index 2c727cb..bda0d53 100644 (file)
--- a/index.php
+++ b/index.php
 
             print_section($SITE, $section, $mods, $modnamesused, true);
 
-            if ($editing) {
-                print_section_add_menus($SITE, $section->section, $modnames);
-            }
+            echo $courserenderer->course_section_add_cm_control($SITE, $section->section);
             echo $OUTPUT->box_end();
         }
     }