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

This commit is contained in:
Rossiani Wijaya 2010-10-11 05:46:58 +00:00
parent 2324aab954
commit 29cf6631d8

View File

@ -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);;