mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fix for Private-message date
This commit is contained in:
parent
04c187ee2b
commit
7ff76dfcb7
@ -291,14 +291,15 @@ class pm_shortcodes extends e_shortcode
|
||||
|
||||
public function sc_pm_date($parm = '')
|
||||
{
|
||||
require_once(e_HANDLER.'date_handler.php');
|
||||
if('lapse' != $parm)
|
||||
$tp = e107::getParser();
|
||||
|
||||
if($parm)
|
||||
{
|
||||
return convert::convert_date($this->var['pm_sent'], $parm);
|
||||
return $tp->toDate($this->var['pm_sent'], $parm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return convert::computeLapse($this->var['pm_sent']);
|
||||
return $tp->toDate($this->var['pm_sent'], 'relative');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ $PM_OUTBOX_TABLE = "
|
||||
<td class='forumheader3'>{PM_READ_ICON}</td>
|
||||
<td class='forumheader3'>{PM_SUBJECT=link,outbox}{PM_ATTACHMENT_ICON}</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>
|
||||
</tr>
|
||||
";
|
||||
|
Loading…
x
Reference in New Issue
Block a user