1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-24 17:13:01 +00:00
This commit is contained in:
Starbeamrainbowlabs 2014-11-27 18:55:44 +00:00
parent 5d8813988b
commit 07e6221863

View file

@ -417,7 +417,7 @@ function human_time_since($time)
);
foreach ($tokens as $unit => $text) {
if ($timediff < $unit) continue;
$numberOfUnits = floor($timdiffe / $unit);
$numberOfUnits = floor($timediff / $unit);
return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'').' ago';
}
}