Jump to content

Topic on Extension talk:SocialProfile/Archive 9

Mwssnov (talkcontribs)

SocialProfile.php (from 104):

// Prefix SocialProfile will use to store avatars

// for global avatars on a wikifarm or groups of wikis,

// set this to something static.

$wgAvatarKey = $wgDBname;


but, RandomUsersWithAvatars.php (from 47):

if ( !$data ) {

$files = glob( $wgUploadDirectory . "/avatars/{$wgDBname}_*_{$size}.*" );


(72): preg_match( "/{$wgDBname}_(.*)_/i", $avatarName, $matches );

Jack Phoenix (talkcontribs)

Thanks for the report, this is now fixed!

If you're curious about the history: the $wgAvatarKey patch in SocialProfile (commit bbb405a0a208a915c0f746b4c501ab6a8d9d86c9) took place years before phab:T195173 was resolved; because RandomUsersWithAvatars was, at the time, a separate extension, nobody thought of updating it. Oops. :) Glad you caught the bug now and reported it!

Reply to "wgAvatarKey"