diff --git a/classes/course_renderer.php b/classes/course_renderer.php index 0114c2d..ac6fe89 100644 --- a/classes/course_renderer.php +++ b/classes/course_renderer.php @@ -623,10 +623,8 @@ protected function course_section_cm_image(cm_info $mod) { } else { $class .= ' custom'; } - $image = html_writer::img($srcurl, $mod->get_formatted_name(), - ['class' => $class, 'alt' => ' ']); - return html_writer::tag('span', - $image, ['class' => 'mdl-align vsf-icon']); + $image = html_writer::img($srcurl, $mod->get_formatted_name(), ['class' => $class, 'alt' => ' ']); + return html_writer::tag('span', $image, ['class' => 'mdl-align vsf-icon']); } /**