diff --git a/course/lib.php b/course/lib.php index 0affe66ed30..29e0fa09f7d 100644 --- a/course/lib.php +++ b/course/lib.php @@ -2001,6 +2001,7 @@ function print_course($course, $highlightterms = '') { if ($icons = enrol_get_course_info_icons($course)) { echo html_writer::start_tag('div', array('class'=>'enrolmenticons')); foreach ($icons as $icon) { + $icon->attributes["alt"] .= ": ". format_string($coursename, true, array('context'=>$context)); echo $OUTPUT->render($icon); } echo html_writer::end_tag('div'); // End of enrolmenticons div