aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository/Commit.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-04-17 10:37:49 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-04-17 10:37:49 +0200
commit137322548e4739c826e49ceefaddfb668a6f9cf2 (patch)
treebce0e75444ffee29c7573b4adc3d7e86282832ba /src/phorkie/Repository/Commit.php
parent992170d966b238ce17504f1c347a501d46d50082 (diff)
downloadphorkie-137322548e4739c826e49ceefaddfb668a6f9cf2.tar.gz
phorkie-137322548e4739c826e49ceefaddfb668a6f9cf2.zip
do not ask libravatar for anonymous commits
Diffstat (limited to 'src/phorkie/Repository/Commit.php')
-rw-r--r--src/phorkie/Repository/Commit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phorkie/Repository/Commit.php b/src/phorkie/Repository/Commit.php
index ce00235..031d95e 100644
--- a/src/phorkie/Repository/Commit.php
+++ b/src/phorkie/Repository/Commit.php
@@ -16,6 +16,10 @@ class Repository_Commit
public function getIconUrl()
{
+ if ($this->committerEmail == 'anonymous@phorkie') {
+ return '/phorkie/anonymous.png';
+ }
+
//workaround for https://pear.php.net/bugs/bug.php?id=19384
require_once 'PEAR/Services/Libravatar.php';