mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
More consistent 'short' relative date
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user