git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not ask libravatar for anonymous commits
[phorkie.git]
/
src
/
phorkie
/
Repository
/
Commit.php
diff --git
a/src/phorkie/Repository/Commit.php
b/src/phorkie/Repository/Commit.php
index ce00235590c4fd22d0e6cf0b0060fbdc777fd6ab..031d95ef743f9961a3c4083365240f292c79a9d2 100644
(file)
--- a/
src/phorkie/Repository/Commit.php
+++ b/
src/phorkie/Repository/Commit.php
@@
-16,6
+16,10
@@
class Repository_Commit
public function getIconUrl()
{
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';
//workaround for https://pear.php.net/bugs/bug.php?id=19384
require_once 'PEAR/Services/Libravatar.php';