From 29cf6631d872381e9c72a9ce5bb6b8e94b5d6b75 Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Mon, 11 Oct 2010 05:46:58 +0000 Subject: [PATCH] MDL-20034: add title attribute to user profile (image tag). --- lib/outputrenderers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 7f1a85dda91..306a1d85a7c 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -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);; -- 2.43.0