Skip to content

Commit

Permalink
Tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jun 7, 2024
1 parent 538964f commit 4805b47
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions classes/course_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

/**
Expand Down

0 comments on commit 4805b47

Please sign in to comment.