mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-20034: add title attribute to user profile (image tag).
This commit is contained in:
parent
2324aab954
commit
29cf6631d8
1 changed files with 1 additions and 1 deletions
|
@ -1823,7 +1823,7 @@ class core_renderer extends renderer_base {
|
||||||
$src = $this->pix_url('u/' . $file);
|
$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
|
// get the image html output fisrt
|
||||||
$output = html_writer::empty_tag('img', $attributes);;
|
$output = html_writer::empty_tag('img', $attributes);;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue