From: Sam Marshall Date: Mon, 30 Nov 2009 16:55:03 +0000 (+0000) Subject: MDL-20498 User pictures should not have 'generic' alt text X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=41ff27d0cc9795a7c2141e39752fd47e81ae4ea9;p=moodle.git MDL-20498 User pictures should not have 'generic' alt text --- diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 16f4096308..bc55c49632 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -1930,7 +1930,8 @@ class moodle_user_picture extends moodle_html_component { if (!empty($this->user->imagealt)) { $this->image->alt = $this->user->imagealt; } else { - $this->image->alt = get_string('pictureof','',fullname($this->user)); + // No alt text when there is nothing useful (accessibility) + $this->image->alt = HTML_ATTR_EMPTY; } }