diff --git a/e107_plugins/forum/core/shortcodes/batch/post_shortcodes.php b/e107_plugins/forum/core/shortcodes/batch/post_shortcodes.php index 559e7b85f..926d358e1 100644 --- a/e107_plugins/forum/core/shortcodes/batch/post_shortcodes.php +++ b/e107_plugins/forum/core/shortcodes/batch/post_shortcodes.php @@ -1,12 +1,13 @@ e107 = e107::getInstance(); } diff --git a/e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php index 6c61195c6..c8b645b1d 100644 --- a/e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/core/shortcodes/batch/view_shortcodes.php @@ -7,6 +7,7 @@ class plugin_forum_view_shortcodes extends e_shortcode function __construct() { + parent::__construct(); $this->e107 = e107::getInstance(); } diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index 15830df9c..3befe846a 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -71,9 +71,8 @@ if (!$forum->checkPerm($forumId, 'post')) define('MODERATOR', USER && $forum->isModerator(USERID)); require_once(e_HANDLER.'ren_help.php'); -//require_once(e_HANDLER.'forum_include.php'); -e107::getScBatch('forum', 'forum'); -e107::getScBatch('forum_post', 'forum')->setScVar('forum', $forum)->setScVar('threadInfo', $threadInfo); +e107::getScBatch('view', 'forum'); +e107::getScBatch('post', 'forum')->setScVar('forum', $forum)->setScVar('threadInfo', $threadInfo); $gen = new convert; $fp = new floodprotect; @@ -490,42 +489,12 @@ if (!$FORUMPOST) } } -/* check post access (bugtracker #1424) */ -//if($action == "rp" && !$sql -> db_Select("forum_t", "*", "thread_id='{$id}'")) -//{ -// $ns -> tablerender(LAN_20, "