From a5dbb601ce7f7955e0f864a1d21e53c79cc3e9f2 Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Tue, 4 Dec 2012 15:57:30 +0800 Subject: [PATCH] MDL-36108 - Blocks - Online User block's user image's alt attribute is now empty to prevent repetition of text for screen readers --- blocks/online_users/block_online_users.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index 2efe9a276c5..77f8a69b749 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -151,12 +151,13 @@ class block_online_users extends block_base { $timeago = format_time($now - $user->lastaccess); //bruno to calculate correctly on frontpage if (isguestuser($user)) { - $this->content->text .= '
'.$OUTPUT->user_picture($user, array('size'=>16)); + $this->content->text .= '
'.$OUTPUT->user_picture($user, array('size'=>16, 'alttext'=>false)); $this->content->text .= get_string('guestuser').'
'; } else { - $this->content->text .= '
'.$OUTPUT->user_picture($user, array('size'=>16)); - $this->content->text .= ''.$user->fullname.'
'; + $this->content->text .= ''; } if ($canshowicon and ($USER->id != $user->id) and !isguestuser($user)) { // Only when logged in and messaging active etc $anchortagcontents = ''. get_string('messageselectadd') .'';