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 try to delete if file does not exist
[phorkie.git]
/
src
/
phorkie
/
Repository
/
Commit.php
diff --git
a/src/phorkie/Repository/Commit.php
b/src/phorkie/Repository/Commit.php
index ce00235590c4fd22d0e6cf0b0060fbdc777fd6ab..1ac8cc5cce40788a526446f40578ecf9b51112cd 100644
(file)
--- a/
src/phorkie/Repository/Commit.php
+++ b/
src/phorkie/Repository/Commit.php
@@
-16,8
+16,9
@@
class Repository_Commit
public function getIconUrl()
{
public function getIconUrl()
{
- //workaround for https://pear.php.net/bugs/bug.php?id=19384
- require_once 'PEAR/Services/Libravatar.php';
+ if ($this->committerEmail == 'anonymous@phorkie') {
+ return '/phorkie/anonymous.png';
+ }
$s = new \Services_Libravatar();
return $s->url(
$s = new \Services_Libravatar();
return $s->url(
@@
-40,10
+41,12
@@
class Repository_Commit
$sum = $r + $g;
if ($sum > 7) {
$quot = ceil($sum / 7);
$sum = $r + $g;
if ($sum > 7) {
$quot = ceil($sum / 7);
- $r = int($r / $quot);
- $g = int($g / $quot);
+ $r = int
val
($r / $quot);
+ $g = int
val
($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);
}
return str_split($string);
}
@@
-69,4
+72,4
@@
class Repository_Commit
}
}
}
}
-?>
\ No newline at end of file
+?>