From: Tobias Diekershoff Date: Mon, 27 Aug 2012 17:31:41 +0000 (+0200) Subject: pass "ago" information to the mail_list template X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e9d35fb0ed8c5d801e73cd5c5752f5ac84386de;p=friendica.git pass "ago" information to the mail_list template --- diff --git a/mod/message.php b/mod/message.php index 83bad29d43..57d4beb0f6 100644 --- a/mod/message.php +++ b/mod/message.php @@ -351,6 +351,7 @@ function message_content(&$a) { '$body' => template_escape($rr['body']), '$to_name' => template_escape($rr['name']), '$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'], t('D, d M Y - g:i A')), + '$ago' => relative_date($rr['mailcreated']), '$seen' => $rr['mailseen'], '$count' => sprintf( tt('%d message', '%d messages', $rr['count']), $rr['count']), ));