1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

More consistent 'short' relative date

This commit is contained in:
Cameron 2013-07-08 10:37:40 -07:00
parent e70b7d04b7
commit 04c187ee2b

View File

@ -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
}