mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-24 17:13:01 +00:00
bugfix
This commit is contained in:
parent
5d8813988b
commit
07e6221863
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ function human_time_since($time)
|
||||||
);
|
);
|
||||||
foreach ($tokens as $unit => $text) {
|
foreach ($tokens as $unit => $text) {
|
||||||
if ($timediff < $unit) continue;
|
if ($timediff < $unit) continue;
|
||||||
$numberOfUnits = floor($timdiffe / $unit);
|
$numberOfUnits = floor($timediff / $unit);
|
||||||
return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'').' ago';
|
return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'').' ago';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue