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 ce00235590c4fd22d0e6cf0b0060fbdc777fd6ab..031d95ef743f9961a3c4083365240f292c79a9d2 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';