Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-20034: add title attribute to user profile (image tag).

  • Loading branch information...
commit 29cf6631d872381e9c72a9ce5bb6b8e94b5d6b75 1 parent 2324aab
Rossiani Wijaya authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/outputrenderers.php
View
2  lib/outputrenderers.php
@@ -1823,7 +1823,7 @@ protected function render_user_picture(user_picture $userpicture) {
$src = $this->pix_url('u/' . $file);
}
- $attributes = array('src'=>$src, 'alt'=>$alt, 'class'=>$class, 'width'=>$size, 'height'=>$size);
+ $attributes = array('src'=>$src, 'alt'=>$alt, 'title'=>$alt, 'class'=>$class, 'width'=>$size, 'height'=>$size);
// get the image html output fisrt
$output = html_writer::empty_tag('img', $attributes);;
Please sign in to comment.
Something went wrong with that request. Please try again.