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

Possible fix for Issue #399 - Private Message Menu.

This commit is contained in:
Cameron
2013-07-08 01:46:14 -07:00
parent 64c18067a6
commit 3045587424
3 changed files with 16 additions and 15 deletions

View File

@@ -328,18 +328,19 @@ class pm_shortcodes extends e_shortcode
public function sc_pm_from_to()
{
$tp = e107::getParser();
$sc = e107::getScBatch('pm',TRUE);
if($this->var['pm_from'] == USERID)
{
$ret = LAN_PM_2.': <br />';
$this->var['user_name'] = $this->var['sent_name'];
$ret .= $tp->parseTemplate("{PM_TO=link}");
$ret .= $tp->parseTemplate("{PM_TO=link}", false, $sc);
}
else
{
$ret = LAN_PM_31.': <br />';
$this->var['user_name'] = $this->var['from_name'];
$ret .= $tp->parseTemplate("{PM_FROM=link}");
$ret .= $tp->parseTemplate("{PM_FROM=link}", false, $sc);
}
return $ret;
}