diff --git a/e107_plugins/pm/pm_class.php b/e107_plugins/pm/pm_class.php index 126d6158d..914cd0550 100755 --- a/e107_plugins/pm/pm_class.php +++ b/e107_plugins/pm/pm_class.php @@ -386,16 +386,13 @@ class private_message $template = $PM_NOTIFY; */ - if(THEME_LEGACY){ - include_once(THEME.'pm_template.php'); - $template = $PM_NOTIFY; - } - if (!$PM_NOTIFY){$template = e107::getTemplate('pm', 'pm', 'notify');} + if(THEME_LEGACY){include_once(THEME.'pm_template.php');} + if (!$PM_NOTIFY){$PM_NOTIFY = e107::getTemplate('pm', 'pm', 'notify');} - if(empty($template)) // BC Fallback. + if(empty($PM_NOTIFY)) // BC Fallback. { - $template = + $PM_NOTIFY = "

".LAN_PM_101."{SITENAME}

@@ -422,7 +419,7 @@ class private_message $data['PM_URL'] = $url;// e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid; $data['PM_BUTTON'] = "".LAN_PM_113."";// e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid; - $text = e107::getParser()->simpleParse($template, $data); + $text = e107::getParser()->simpleParse($PM_NOTIFY, $data); $eml = array(); $eml['email_subject'] = LAN_PM_100.USERNAME;