Skip to content

Commit

Permalink
Update user_shortcodes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Feb 11, 2025
1 parent 8fe0039 commit dbef173
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e107_core/shortcodes/batch/user_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']))
Expand Down Expand Up @@ -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'];
Expand All @@ -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']}}");
}
Expand Down

0 comments on commit dbef173

Please sign in to comment.