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

This commit is contained in:
Paul Holden 2023-08-21 15:32:44 +01:00
commit 5af5c5d0a6
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

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');