1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-13 17:09:46 +01:00

Update view_shortcodes.php

This commit is contained in:
rica-carv 2024-09-22 19:59:18 +01:00 committed by GitHub
parent 6fddef4d7a
commit 416997604e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -154,18 +154,26 @@ class plugin_forum_view_shortcodes extends e_shortcode
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);
}