[Jaws-commits] r12369 - branches/0.8/html/include/Jaws

afz at jaws-project.com afz at jaws-project.com
Fri Jan 6 08:08:55 UTC 2012


Author: afz
Date: 2012-01-06 08:08:55 +0000 (Fri, 06 Jan 2012)
New Revision: 12369

Modified:
   branches/0.8/html/include/Jaws/Gravatar.php
Log:
fixed return image from gravatar if not exists

Modified: branches/0.8/html/include/Jaws/Gravatar.php
===================================================================
--- branches/0.8/html/include/Jaws/Gravatar.php	2012-01-06 07:30:05 UTC (rev 12368)
+++ branches/0.8/html/include/Jaws/Gravatar.php	2012-01-06 08:08:55 UTC (rev 12369)
@@ -35,8 +35,7 @@
             $size = 0;
         }
 
-        $defaultImage = urlencode($defaultImage);
-
+        $defaultImage = urlencode($GLOBALS['app']->getSiteURL('/'.$defaultImage));
         $gravatar = 'http://www.gravatar.com/avatar.php?gravatar_id=' . $id. '&rating='. $rating. '&' .
             'size=' . $size.'&default=' . $defaultImage;
 



More information about the Jaws-commits mailing list