X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/1797cbc2b010552b54e9d070820fa9cbc9ce3af9..38aa0dc6133ff53d20fd9f714eb380809c8dba67:/src/phorkie/Repository/Commit.php diff --git a/src/phorkie/Repository/Commit.php b/src/phorkie/Repository/Commit.php index 62f1d40..1afc151 100644 --- a/src/phorkie/Repository/Commit.php +++ b/src/phorkie/Repository/Commit.php @@ -16,18 +16,8 @@ class Repository_Commit public function getIconUrl() { - if ($this->committerEmail == 'anonymous@phorkie') { - return '/phorkie/anonymous.png'; - } - - $s = new \Services_Libravatar(); - return $s->url( - $this->committerEmail, - array( - 'size' => 32, - 'default' => Tools::fullUrl('/phorkie/anonymous.png') - ) - ); + $hh = new HtmlHelper(); + return $hh->getIconUrl($this->committerEmail); } /** @@ -44,7 +34,9 @@ class Repository_Commit $r = intval($r / $quot); $g = intval($g / $quot); } - $string = str_repeat('g', $g) . str_repeat('r', $r) . str_repeat('n', 7 - $g - $r); + $string = str_repeat('g', $g) + . str_repeat('r', $r) + . str_repeat('n', 7 - $g - $r); return str_split($string); }