Merge branch 'MDL-72130-master' of git://github.com/ferranrecio/moodle

This commit is contained in:
Sara Arjona 2021-09-01 18:15:18 +02:00
commit 72410362bf

View File

@ -880,11 +880,12 @@ class core_course_renderer extends plugin_renderer_base {
}
$section = $modinfo->get_section_info($format->get_section_number());
$cmclass = $format->get_output_classname('content/cm');
$cmclass = $format->get_output_classname('content\\section\\cm');
$cm = new $cmclass($format, $section, $mod, $displayoptions);
// The course outputs works with format renderers, not with course renderers.
$renderer = $format->get_renderer($this->page);
return $renderer->render($cm);
$data = $cm->export_for_template($renderer);
return $this->output->render_from_template('core_courseformat/local/content/cm', $data);
}
/**