1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Fix for Private-message date

This commit is contained in:
Cameron
2013-07-08 10:40:08 -07:00
parent 04c187ee2b
commit 7ff76dfcb7
2 changed files with 6 additions and 5 deletions

View File

@@ -291,14 +291,15 @@ class pm_shortcodes extends e_shortcode
public function sc_pm_date($parm = '') public function sc_pm_date($parm = '')
{ {
require_once(e_HANDLER.'date_handler.php'); $tp = e107::getParser();
if('lapse' != $parm)
if($parm)
{ {
return convert::convert_date($this->var['pm_sent'], $parm); return $tp->toDate($this->var['pm_sent'], $parm);
} }
else else
{ {
return convert::computeLapse($this->var['pm_sent']); return $tp->toDate($this->var['pm_sent'], 'relative');
} }
} }

View File

@@ -159,7 +159,7 @@ $PM_OUTBOX_TABLE = "
<td class='forumheader3'>{PM_READ_ICON}</td> <td class='forumheader3'>{PM_READ_ICON}</td>
<td class='forumheader3'>{PM_SUBJECT=link,outbox}{PM_ATTACHMENT_ICON}</td> <td class='forumheader3'>{PM_SUBJECT=link,outbox}{PM_ATTACHMENT_ICON}</td>
<td class='forumheader3'>{PM_TO=link}</td> <td class='forumheader3'>{PM_TO=link}</td>
<td class='forumheader3'>{PM_DATE}</td> <td class='forumheader3'>{PM_DATE=lapse}</td>
<td class='forumheader3' style='text-align: center'>{PM_DELETE=outbox}</td> <td class='forumheader3' style='text-align: center'>{PM_DELETE=outbox}</td>
</tr> </tr>
"; ";