From 416997604e07b867f5d6388ced2a0fab854d1d22 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Sun, 22 Sep 2024 19:59:18 +0100 Subject: [PATCH] Update view_shortcodes.php --- .../forum/shortcodes/batch/view_shortcodes.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index b1b6fb3815..a80660b8bf 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -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); }