Permalink
Browse files

Merge branch 'MDL-38824-m23' of git://github.com/sammarshallou/moodle…

… into MOODLE_23_STABLE
  • Loading branch information...
2 parents 387dc90 + 3952588 commit 32f2cceeccc329eb86835577ca88825eebb91c07 @danpoltawski danpoltawski committed Apr 17, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 course/lib.php
View
@@ -1734,9 +1734,10 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
echo html_writer::end_tag('div');
echo html_writer::end_tag('form');
} else {
- // In auto mode, or when editing, the icon is just an image
- echo "<span class='autocompletion'>";
- echo "<img src='$imgsrc' alt='$imgalt' title='$imgalt' /></span>";
+ // In auto mode, or when editing, the icon is just an image.
+ echo html_writer::tag('span', html_writer::empty_tag('img', array(
+ 'src' => $imgsrc, 'alt' => $imgalt, 'title' => $imgalt)),
+ array('class' => 'autocompletion'));
}
}
}

0 comments on commit 32f2cce

Please sign in to comment.