Skip to content

Commit

Permalink
Fix gravatar size param
Browse files Browse the repository at this point in the history
Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Mar 7, 2015
1 parent 43b35b8 commit 871f8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/Load.php
Original file line number Diff line number Diff line change
Expand Up @@ -2888,7 +2888,7 @@ function determineAvatar($profile)
elseif (!empty($profile['avatar']) && $profile['avatar'] === 'gravatar')
{
// Gravatars URL.
$gravatar_url = '//www.gravatar.com/avatar/' . md5(strtolower($profile['email_address'])) . 'd=' . $modSettings['avatar_max_height'] . (!empty($modSettings['gravatar_rating']) ? ('&amp;r=' . $modSettings['gravatar_rating']) : '');
$gravatar_url = '//www.gravatar.com/avatar/' . md5(strtolower($profile['email_address'])) . ';s=' . $modSettings['avatar_max_height'] . (!empty($modSettings['gravatar_rating']) ? ('&amp;r=' . $modSettings['gravatar_rating']) : '');

$avatar = array(
'name' => $profile['avatar'],
Expand Down Expand Up @@ -2932,7 +2932,7 @@ function determineAvatar($profile)
);

// Make sure there's a preview for gravatars available.
$avatar['gravatar_preview'] = '//www.gravatar.com/avatar/' . md5(strtolower($profile['email_address'])) . 'd=' . $modSettings['avatar_max_height'] . (!empty($modSettings['gravatar_rating']) ? ('&amp;r=' . $modSettings['gravatar_rating']) : '');
$avatar['gravatar_preview'] = '//www.gravatar.com/avatar/' . md5(strtolower($profile['email_address'])) . ';s=' . $modSettings['avatar_max_height'] . (!empty($modSettings['gravatar_rating']) ? ('&amp;r=' . $modSettings['gravatar_rating']) : '');

return $avatar;
}
Expand Down

0 comments on commit 871f8da

Please sign in to comment.