Jack Phoenix has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/329238 )

Change subject: Follow-up to the previous commit: use the new variable to fetch 
the correct images
......................................................................


Follow-up to the previous commit: use the new variable to fetch the correct 
images

Change-Id: I289371c2b31785e55b6fa912d852317cc23a1e9e
---
M RandomUsersWithAvatars.class.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jack Phoenix: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/RandomUsersWithAvatars.class.php b/RandomUsersWithAvatars.class.php
index 55a1b9f..054cd6a 100644
--- a/RandomUsersWithAvatars.class.php
+++ b/RandomUsersWithAvatars.class.php
@@ -38,7 +38,7 @@
                $key = wfMemcKey( 'users', 'random', 'avatars', $count, 
$per_row );
                $data = $wgMemc->get( $key );
                if ( !$data ) {
-                       $files = glob( $wgUploadDirectory . 
"/avatars/{$wgDBname}_*_ml.*" );
+                       $files = glob( $wgUploadDirectory . 
"/avatars/{$wgDBname}_*_{$size}.*" );
                        $wgMemc->set( $key, $files, 60 * 60 );
                } else {
                        wfDebug( "Got random users with avatars from cache\n" );

-- 
To view, visit https://gerrit.wikimedia.org/r/329238
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I289371c2b31785e55b6fa912d852317cc23a1e9e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RandomUsersWithAvatars
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to