]> git.mxchange.org Git - friendica.git/commitdiff
pass "ago" information to the mail_list template
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 27 Aug 2012 17:31:41 +0000 (19:31 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 27 Aug 2012 17:31:41 +0000 (19:31 +0200)
mod/message.php

index 83bad29d43647fea02fe1107e175a71dff5b59b4..57d4beb0f6b6835c11cdc857b99c7ca7f50754ce 100644 (file)
@@ -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']),
                        ));