Skip to content
This repository has been archived by the owner on Mar 12, 2018. It is now read-only.

Commit

Permalink
MDL-35818 - Enrolment - Changing all enrolment method icon alt text a…
Browse files Browse the repository at this point in the history
…ttributes to include the name of the course
  • Loading branch information
jsnfwlr committed Jan 14, 2013
1 parent ca48fe5 commit b4a7ce9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4a7ce9

Please sign in to comment.