Skip to content

Commit

Permalink
Update view_shortcodes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Sep 22, 2024
1 parent 6fddef4 commit 4169976
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions e107_plugins/forum/shortcodes/batch/view_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,26 @@ function sc_topic_url($parm = null)

function sc_topic_views($parm = null)
{

$val = ($this->var['thread_views']) ? $this->var['thread_views'] : '0';


if(!empty($parm['raw']))
{
return $val;
}

return e107::getParser()->toBadge($val);
}


function sc_topic_replies($parm = null)
{

$val = ($this->var['thread_total_replies']) ? $this->var['thread_total_replies'] : '0';

if(!empty($parm['raw']))
{
return $val;
}

return e107::getParser()->toBadge($val);
}

Expand Down

0 comments on commit 4169976

Please sign in to comment.