mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
More consistent 'short' relative date
This commit is contained in:
parent
e70b7d04b7
commit
04c187ee2b
@ -498,8 +498,9 @@ class convert
|
||||
{ // Only show non-zero values, except always show minutes/seconds
|
||||
$outputArray[] = $result[$i]." ".($result[$i] == 1 ? $params[$i][2] : $params[$i][3]) ;
|
||||
|
||||
if($format == 'short' && $i == 1) { break; }
|
||||
|
||||
}
|
||||
if($format == 'short' && count($outputArray) == 1) { break; }
|
||||
}
|
||||
return ($mode ? $outputArray : implode(", ", $outputArray) . " ago"); //XXX LAN
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user