diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index dbdf802097b..e44468cae6a 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -126,7 +126,8 @@ class block_online_users extends block_base { } else { // Not a guest user. $this->content->text .= '
'; $this->content->text .= ''; - $this->content->text .= $OUTPUT->user_picture($user, array('size'=>16, 'alttext'=>false, 'link'=>false)) .$user->fullname.'
'; + $avataroptions = ['size' => 16, 'visibletoscreenreaders' => false, 'link' => false]; + $this->content->text .= $OUTPUT->user_picture($user, $avataroptions) . $user->fullname . ''; if ($USER->id == $user->id) { if ($CFG->block_online_users_onlinestatushiding) { diff --git a/blocks/recentlyaccessedcourses/templates/recentlyaccessedcourses-view.mustache b/blocks/recentlyaccessedcourses/templates/recentlyaccessedcourses-view.mustache index 9a0bdb4db2c..0b2ef5d4eaf 100644 --- a/blocks/recentlyaccessedcourses/templates/recentlyaccessedcourses-view.mustache +++ b/blocks/recentlyaccessedcourses/templates/recentlyaccessedcourses-view.mustache @@ -45,8 +45,7 @@ diff --git a/blocks/timeline/templates/event-list.mustache b/blocks/timeline/templates/event-list.mustache index 83c3b8aa3dd..999d1fba766 100644 --- a/blocks/timeline/templates/event-list.mustache +++ b/blocks/timeline/templates/event-list.mustache @@ -46,8 +46,7 @@