warn about remote fork config in setup and help
[phorkie.git] / src / phorkie / HtmlHelper.php
index c3336c36b1a6da2cfaf996c3879008a615baa7d3..7a991e415d96c70acecd1ed07fe276c3ccf2a4f2 100644 (file)
@@ -5,11 +5,14 @@ class HtmlHelper
 {
     public function getIconUrl($email, $size = 32)
     {
-        if ($email == 'anonymous@phorkie') {
+        if ($email == 'anonymous@phorkie'
+            || !$GLOBALS['phorkie']['cfg']['avatars']
+        ) {
             return 'phorkie/anonymous.png';
         }
 
         $s = new \Services_Libravatar();
+        $s->detectHttps();
         return $s->url(
             $email,
             array(