From: Christian Weiske Date: Fri, 16 May 2014 05:47:34 +0000 (+0200) Subject: add option to disable avatar loading X-Git-Tag: v0.4.0~38 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/536ef0bf5315002c5a45c179f71562ca1a1da3d5 add option to disable avatar loading --- diff --git a/data/config.default.php b/data/config.default.php index dd32195..8f796f4 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -5,8 +5,9 @@ $GLOBALS['phorkie']['cfg'] = array( 'workdir' => __DIR__ . '/../repos/work/', 'tpl' => __DIR__ . '/templates/', 'baseurl' => '/', + 'avatars' => true, 'css' => '', - 'iconpng' => '', + 'iconpng' => '',//phorkie browser icon (favicon) 'title' => 'phorkie', 'topbar' => '', 'setupcheck' => true, diff --git a/src/phorkie/HtmlHelper.php b/src/phorkie/HtmlHelper.php index c3336c3..d234685 100644 --- a/src/phorkie/HtmlHelper.php +++ b/src/phorkie/HtmlHelper.php @@ -5,7 +5,9 @@ class HtmlHelper { public function getIconUrl($email, $size = 32) { - if ($email == 'anonymous@phorkie') { + if ($email == 'anonymous@phorkie' + || !$GLOBALS['phorkie']['cfg']['avatars'] + ) { return 'phorkie/anonymous.png'; }