Permalink
Browse files

Fixed bug where Gravatar was using name instead of email for vanillic…

…ons.
  • Loading branch information...
1 parent 53e7b0f commit 20365660df6921c332acd0df842d32b6ee89a863 @tburry tburry committed Dec 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/Gravatar/default.php
@@ -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));

0 comments on commit 2036566

Please sign in to comment.