From 912d5de689c5406bc475f09c7b6b9ac1573c363d Mon Sep 17 00:00:00 2001 From: mcfly Date: Mon, 26 Apr 2010 15:07:30 +0000 Subject: [PATCH] More changes to comply with new shortcode rules --- .../{forum_post_shortcodes.php => post_shortcodes.php} | 0 .../batch/{forum_shortcodes.php => view_shortcodes.php} | 2 +- e107_plugins/forum/forum_viewtopic.php | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename e107_plugins/forum/core/shortcodes/batch/{forum_post_shortcodes.php => post_shortcodes.php} (100%) rename e107_plugins/forum/core/shortcodes/batch/{forum_shortcodes.php => view_shortcodes.php} (99%) 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"; } }