mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-26 02:55:02 +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) {
|
||||
if ($timediff < $unit) continue;
|
||||
$numberOfUnits = floor($timdiffe / $unit);
|
||||
$numberOfUnits = floor($timediff / $unit);
|
||||
return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'').' ago';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue