MDL-37085 Substitute function print_section_add_menus() with core_course_renderer...
[moodle.git] / blocks / social_activities / block_social_activities.php
index d7d48c0..0de13b7 100644 (file)
@@ -137,7 +137,9 @@ class block_social_activities extends block_list {
             $this->content->icons[] = '';
         }
 
-        $this->content->footer = print_section_add_menus($course, 0, null, true, true);
+        $courserenderer = $this->page->get_renderer('core', 'course');
+        $this->content->footer = $courserenderer->course_section_add_cm_control($course,
+                0, null, array('inblock' => true));
 
         return $this->content;
     }