mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-20498 User pictures should not have 'generic' alt text
This commit is contained in:
parent
ff8c7b2ac8
commit
41ff27d0cc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user