mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
Merge branch 'MDL-72130-master' of git://github.com/ferranrecio/moodle
This commit is contained in:
commit
72410362bf
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user