MDL-35818 - Enrolment - Changing all enrolment method icon alt text attributes to...
authorJason Fowler <phalacee@gmail.com>
Fri, 7 Dec 2012 06:25:24 +0000 (14:25 +0800)
committerJason Fowler <phalacee@gmail.com>
Mon, 14 Jan 2013 01:47:21 +0000 (09:47 +0800)
course/lib.php

index 54dfc74..33c931e 100644 (file)
@@ -2606,6 +2606,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