Skip to content

Commit

Permalink
Fixed bug where Gravatar was using name instead of email for vanillic…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
tburry committed Dec 22, 2011
1 parent 53e7b0f commit 2036566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Gravatar/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function UserPhotoDefaultUrl($User) {
.'&size='.C('Garden.Thumbnail.Width', 50);

if (C('Plugins.Gravatar.UseVanillicon', FALSE))
$Url .= '&default='.urlencode(Asset('http://vanillicon.com/'.md5($User->Name).'.png'));
$Url .= '&default='.urlencode(Asset('http://vanillicon.com/'.md5($User->Email).'.png'));
else
$Url .= '&default='.urlencode(Asset(C('Plugins.Gravatar.DefaultAvatar', 'plugins/Gravatar/default.gif'), TRUE));

Expand Down

0 comments on commit 2036566

Please sign in to comment.