Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ttributes to include the name of the course
  • Loading branch information...
commit a809b827f1f380ff2302ab0b1ce945ad2a637e05 1 parent 3e90b10
@jsnfwlr jsnfwlr authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.