mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-20034: add title attribute to user profile (image tag).
This commit is contained in:
parent
2324aab954
commit
29cf6631d8
@ -1823,7 +1823,7 @@ class core_renderer extends renderer_base {
|
||||
$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);;
|
||||
|
Loading…
x
Reference in New Issue
Block a user