diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-05-16 07:47:34 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-05-16 07:47:34 +0200 |
| commit | 536ef0bf5315002c5a45c179f71562ca1a1da3d5 (patch) | |
| tree | 455a2ccad5e909540eca65fbf89417bdb39cec07 | |
| parent | 1bf118847b1fd0540cd259b04488a7fdbc3b4bd0 (diff) | |
| download | phorkie-536ef0bf5315002c5a45c179f71562ca1a1da3d5.tar.gz phorkie-536ef0bf5315002c5a45c179f71562ca1a1da3d5.zip | |
add option to disable avatar loading
| -rw-r--r-- | data/config.default.php | 3 | ||||
| -rw-r--r-- | src/phorkie/HtmlHelper.php | 4 |
2 files changed, 5 insertions, 2 deletions
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'; } |
