Fix bug #98, add "never" to relative_date(), fix batch operations

This commit is contained in:
Fabio Comuni 2011-06-29 12:05:09 +02:00
parent 2a57847816
commit 1e307e9869
3 changed files with 14 additions and 22 deletions

View file

@ -178,6 +178,10 @@ function relative_date($posted_date) {
$abs = strtotime($localtime);
$etime = time() - $abs;
if ($abs==False) {
return t('never');
}
if ($etime < 1) {
return t('less than a second ago');
}