do not ask libravatar for anonymous commits
authorChristian Weiske <cweiske@cweiske.de>
Tue, 17 Apr 2012 08:37:49 +0000 (10:37 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 17 Apr 2012 08:37:49 +0000 (10:37 +0200)
src/phorkie/Repository/Commit.php

index ce00235..031d95e 100644 (file)
@@ -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';