Permalink
Browse files

MDL-35818 - Enrolment - Changing all enrolment method icon alt text a…

…ttributes to include the name of the course
  • Loading branch information...
1 parent ca48fe5 commit b4a7ce9e717d232a03d94a0c216f2be8163d0ef9 @jsnfwlr jsnfwlr committed Dec 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 course/lib.php
View
1 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

0 comments on commit b4a7ce9

Please sign in to comment.