From dbef1737d81522b73449d75ee4278866792c2569 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Tue, 11 Feb 2025 10:25:46 +0000 Subject: [PATCH] Update user_shortcodes.php --- e107_core/shortcodes/batch/user_shortcodes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/user_shortcodes.php b/e107_core/shortcodes/batch/user_shortcodes.php index 6e630cc504..ecdd0ee7ba 100644 --- a/e107_core/shortcodes/batch/user_shortcodes.php +++ b/e107_core/shortcodes/batch/user_shortcodes.php @@ -25,7 +25,7 @@ function __construct() parent::__construct(); $pref = e107::getPref(); - + $tp = e107::getParser(); $this->commentsDisabled = vartrue($pref['comments_disabled']); if(!empty($pref['comments_engine'])) @@ -464,7 +464,7 @@ function sc_user_sendpm($parm=null) { // $pref = e107::getPref(); // why is this orphan $pref here? - $tp = e107::getParser(); +// $tp = e107::getParser(); if(e107::isInstalled("pm") && ($this->var['user_id'] > 0)) { $parms_str = 'user='.$this->var['user_id']; @@ -480,7 +480,8 @@ function($k, $v) { ); } - return $tp->parseTemplate("{SENDPM:".$parms_str.'}'); + return $this->tp->parseTemplate("{SENDPM:".$parms_str.'}'); +// return $tp->parseTemplate("{SENDPM:".$parms_str.'}'); // return $tp->parseTemplate("{SENDPM={$this->var['user_id']}}"); }