Commit 3a5d4f40 by Scott

Fix user display on favorites page

parent 976c9067
......@@ -95,13 +95,18 @@
'type' => 'users'
);
foreach ($users as $user)
foreach ($users as $user) {
$avatarhtml = qa_get_user_avatar_html($user['flags'], $user['email'], $user['handle'],
$user['avatarblobid'], $user['avatarwidth'], $user['avatarheight'], qa_opt('avatar_users_size'), true);
$qa_content['ranking_users']['items'][]=array(
'label' => qa_get_user_avatar_html($user['flags'], $user['email'], $user['handle'],
$user['avatarblobid'], $user['avatarwidth'], $user['avatarheight'], qa_opt('avatar_users_size'), true).' '.$usershtml[$user['userid']],
'avatar' => $avatarhtml,
'label' => $usershtml[$user['userid']],
'score' => qa_html(number_format($user['points'])),
'raw' => $user,
);
}
}
// Favorite tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment