From c88b8977b48bed4e47c4f0413f2f2e7be6892dd0 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Sun, 23 Apr 2017 16:42:42 +0100 Subject: [PATCH] Pm_menu bug Bug preventing loading of template. Corrected --- e107_plugins/pm/pm_menu.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/pm/pm_menu.php b/e107_plugins/pm/pm_menu.php index 5f2bf05fa..317fb93bc 100644 --- a/e107_plugins/pm/pm_menu.php +++ b/e107_plugins/pm/pm_menu.php @@ -102,7 +102,7 @@ $pmManager = new pmbox_manager($pm_prefs); $template = e107::getTemplate('pm', 'pm_menu'); //if(!isset($pm_menu_template)) -if(!isset($PM_MENU_TEMPLATE)) +if(!isset($template)) { //FIXME URL Breaks /* @@ -122,7 +122,7 @@ if(!isset($PM_MENU_TEMPLATE)) */ // $pm_menu_template = " - $PM_MENU_TEMPLATE = " + $template = " ".PM_INBOX_ICON." ".LAN_PLUGIN_PM_INBOX." {PM_NEWPM_ANIMATE} @@ -146,7 +146,7 @@ if(!isset($PM_MENU_TEMPLATE)) $sc->wrapper('pm_menu'); // $txt = "\n".$tp->parseTemplate($pm_menu_template, TRUE, $sc); - $txt = "\n".$tp->parseTemplate($PM_MENU_TEMPLATE, TRUE, $sc); + $txt = "\n".$tp->parseTemplate($template, TRUE, $sc); if($pm_inbox['inbox']['new'] > 0 && $pm_prefs['popup'] && strpos(e_SELF, 'pm.php') === FALSE && $_COOKIE['pm-alert'] != 'ON') {