add option to disable avatar loading
authorChristian Weiske <cweiske@cweiske.de>
Fri, 16 May 2014 05:47:34 +0000 (07:47 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 16 May 2014 05:47:34 +0000 (07:47 +0200)
data/config.default.php
src/phorkie/HtmlHelper.php

index dd3219583303764c7fadd58f0f118ee529ef53f5..8f796f4109b992afca7a901e1acae8873fe9de2e 100644 (file)
@@ -5,8 +5,9 @@ $GLOBALS['phorkie']['cfg'] = array(
     'workdir'       => __DIR__ . '/../repos/work/',
     'tpl'           => __DIR__ . '/templates/',
     'baseurl'       => '/',
     'workdir'       => __DIR__ . '/../repos/work/',
     'tpl'           => __DIR__ . '/templates/',
     'baseurl'       => '/',
+    'avatars'       => true,
     'css'           => '',
     'css'           => '',
-    'iconpng'       => '',
+    'iconpng'       => '',//phorkie browser icon (favicon)
     'title'         => 'phorkie',
     'topbar'        => '',
     'setupcheck'    => true,
     'title'         => 'phorkie',
     'topbar'        => '',
     'setupcheck'    => true,
index c3336c36b1a6da2cfaf996c3879008a615baa7d3..d23468547bbb98ab3726d87eff807437e3ee39aa 100644 (file)
@@ -5,7 +5,9 @@ class HtmlHelper
 {
     public function getIconUrl($email, $size = 32)
     {
 {
     public function getIconUrl($email, $size = 32)
     {
-        if ($email == 'anonymous@phorkie') {
+        if ($email == 'anonymous@phorkie'
+            || !$GLOBALS['phorkie']['cfg']['avatars']
+        ) {
             return 'phorkie/anonymous.png';
         }
 
             return 'phorkie/anonymous.png';
         }