diff --git a/e107_plugins/forum/core/shortcodes/batch/forum_post_shortcodes.php b/e107_plugins/forum/core/shortcodes/batch/post_shortcodes.php similarity index 100% rename from e107_plugins/forum/core/shortcodes/batch/forum_post_shortcodes.php rename to e107_plugins/forum/core/shortcodes/batch/post_shortcodes.php diff --git a/e107_plugins/forum/core/shortcodes/batch/forum_shortcodes.php b/e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php similarity index 99% rename from e107_plugins/forum/core/shortcodes/batch/forum_shortcodes.php rename to e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php index 4941cff8c..6c61195c6 100644 --- a/e107_plugins/forum/core/shortcodes/batch/forum_shortcodes.php +++ b/e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php @@ -1,7 +1,7 @@ setScVar('thread', $thread); +e107::getScBatch('view', 'forum')->setScVar('thread', $thread); $pm_installed = plugInstalled('pm'); @@ -78,7 +78,7 @@ define('e_PAGETITLE', LAN_01 . ' / ' . $e107->tp->toHTML($thread->threadInfo['fo $forum->modArray = $forum->forumGetMods($thread->threadInfo['forum_moderators']); define('MODERATOR', (USER && $forum->isModerator(USERID))); -e107::getScBatch('forum', 'forum')->setScVar('forum', $forum); +e107::getScBatch('view', 'forum')->setScVar('forum', $forum); //var_dump(e107::getScBatch('forum', 'forum')); //setScVar('forum_shortcodes', 'forum', $forum); @@ -225,13 +225,13 @@ foreach ($postList as $postInfo) $_style = (isset($FORUMREPLYSTYLE_ALT) && $alt ? $FORUMREPLYSTYLE_ALT : $FORUMREPLYSTYLE); } // setScVar('forum_shortcodes', 'postInfo', $postInfo); - e107::getScBatch('forum', 'forum')->setScVar('postInfo', $postInfo); + e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo); $forrep .= $e107->tp->parseTemplate($_style, true, $forum_shortcodes) . "\n"; } else { $postInfo['thread_start'] = true; - e107::getScBatch('forum', 'forum')->setScVar('postInfo', $postInfo); + e107::getScBatch('view', 'forum')->setScVar('postInfo', $postInfo); $forthr = $e107->tp->parseTemplate($FORUMTHREADSTYLE, true, $forum_shortcodes) . "\n"; } }