Use timeAgo() instead of timeSince() when displaying object notifications

refs #6778
This commit is contained in:
Eric Lippmann 2015-04-10 10:20:10 +02:00
parent a84b3acee7
commit e6f070d068
1 changed files with 4 additions and 4 deletions

View File

@ -35,16 +35,16 @@ if (! in_array((int) $object->state, array(0, 99))) {
if ($object->current_notification_number > 0) { if ($object->current_notification_number > 0) {
if ((int) $object->current_notification_number === 1) { if ((int) $object->current_notification_number === 1) {
$msg = sprintf( $msg = sprintf(
$this->translate('A notication has been sent for this issue %s ago'), $this->translate('A notication has been sent for this issue %s'),
$this->timeSince($object->last_notification) $this->timeAgo($object->last_notification)
); );
} else { } else {
$msg = sprintf( $msg = sprintf(
$this->translate('%s notications have been sent for this issue'), $this->translate('%s notications have been sent for this issue'),
$object->current_notification_number $object->current_notification_number
) . '<br />' . sprintf( ) . '<br />' . sprintf(
$this->translate('The last one occured %s ago'), $this->translate('The last one occured %s'),
$this->timeSince($object->last_notification) $this->timeAgo($object->last_notification)
); );
} }
echo $msg; echo $msg;