From b4a7ce9e717d232a03d94a0c216f2be8163d0ef9 Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Fri, 7 Dec 2012 14:25:24 +0800 Subject: [PATCH] MDL-35818 - Enrolment - Changing all enrolment method icon alt text attributes to include the name of the course --- course/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/lib.php b/course/lib.php index 52302409346..b362081b665 100644 --- a/course/lib.php +++ b/course/lib.php @@ -2566,6 +2566,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