Browse files

MDL-20034: add title attribute to user picture.

  • Loading branch information...
1 parent 42d68af commit 6eab1a9b0ca752143ac56f92e61681ad8080b23e Rossiani Wijaya committed Oct 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
2 lib/weblib.php
@@ -4530,7 +4530,7 @@ function print_user_picture($user, $courseid, $picture=NULL, $size=0, $return=fa
}
}
- $output .= "<img class=\"$class\" src=\"$src\" height=\"$size\" width=\"$size\" alt=\"".s($imagealt).'" />';
+ $output .= "<img class=\"$class\" src=\"$src\" height=\"$size\" width=\"$size\" title=\"".s($imagealt)."\" alt=\"".s($imagealt).'" />';
if ($link) {
$output .= '</a>';
}

0 comments on commit 6eab1a9

Please sign in to comment.