Jack Phoenix has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/327929 )
Change subject: RandomUsersWithAvatars should provide the username in an alt
attribute for each avatar image
......................................................................
RandomUsersWithAvatars should provide the username in an alt attribute for each
avatar image
Bug: T153521
Change-Id: I791d6d4873ff331e71c9227f3f96067b32c748d4
---
M RandomUsersWithAvatars.class.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RandomUsersWithAvatars
refs/changes/29/327929/1
diff --git a/RandomUsersWithAvatars.class.php b/RandomUsersWithAvatars.class.php
index 5e4c282..47d8feb 100644
--- a/RandomUsersWithAvatars.class.php
+++ b/RandomUsersWithAvatars.class.php
@@ -73,7 +73,7 @@
$user_link = Title::makeTitle( NS_USER,
$user_name );
$output .= '<a href="' . htmlspecialchars(
$user_link->getFullURL() ) .
- '" rel="nofollow">' .
$avatar->getAvatarURL() . '</a>';
+ '" rel="nofollow">' .
$avatar->getAvatarURL( array( 'title' => $user_name ) ) . '</a>';
if ( $x == $count || $x != 1 && $x % $per_row
== 0 ) {
$output .= '<div
class="visualClear"></div>';
--
To view, visit https://gerrit.wikimedia.org/r/327929
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I791d6d4873ff331e71c9227f3f96067b32c748d4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RandomUsersWithAvatars
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits