Merge branch 'MDL-79071-402' of https://github.com/junpataleta/moodle into MOODLE_402_STABLE

This commit is contained in:
Paul Holden
2023-08-21 15:32:43 +01:00
+1 -1
View File
@@ -1210,7 +1210,7 @@ class core_course_renderer extends plugin_renderer_base {
$file->get_filearea() . $file->get_filepath() . $file->get_filename(), !$isimage);
if ($isimage) {
$contentimages .= html_writer::tag('div',
html_writer::empty_tag('img', ['src' => $url]),
html_writer::empty_tag('img', ['src' => $url, 'alt' => '']),
['class' => 'courseimage']);
} else {
$image = $this->output->pix_icon(file_file_icon($file, 24), $file->get_filename(), 'moodle');