]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20498 User pictures should not have 'generic' alt text
authorSam Marshall <s.marshall@open.ac.uk>
Mon, 30 Nov 2009 16:55:03 +0000 (16:55 +0000)
committerSam Marshall <s.marshall@open.ac.uk>
Mon, 30 Nov 2009 16:55:03 +0000 (16:55 +0000)
lib/outputcomponents.php

index 16f409630881448eb46955ed3c06a0d0ea269a38..bc55c49632c9981ebc274fb8353b911b212a06c1 100644 (file)
@@ -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;
             }
         }