Merge branch 'MDL-72990-310' of https://github.com/rezaies/moodle into MOODLE_310_STABLE

This commit is contained in:
Andrew Nicols
2021-11-05 11:58:52 +08:00
+1 -1
View File
@@ -337,7 +337,7 @@ class core_badges_renderer extends plugin_renderer_base {
$output = '';
$output .= html_writer::start_tag('div', array('id' => 'badge'));
$output .= html_writer::start_tag('div', array('id' => 'badge-image'));
$output .= html_writer::empty_tag('img', array('src' => $badgeimage, 'alt' => $badge->name, 'width' => '100'));
$output .= html_writer::empty_tag('img', array('src' => $badgeimage, 'alt' => $badge->imagecaption, 'width' => '100'));
if ($expiration < $now) {
$output .= $this->output->pix_icon('i/expired',
get_string('expireddate', 'badges', userdate($issued['expires'])),