diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index 44e94c535..27646fb82 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -941,7 +941,7 @@ function sc_pages() { // $tVars['PAGES'] = fpages($thread_info, $tVars['REPLIES']); - $ret = fpages($this->var, $this->sc_replies('raw')); + $ret = fpages($this->var, $this->var['thread_total_replies']); if(!empty($ret)) {