[ticket/12413] Move parent:open() call to the end of the function

PHPBB3-12413
This commit is contained in:
Nicofuma 2014-04-29 23:49:04 +02:00
parent ff2d26e7e8
commit 21e2f5c517
2 changed files with 4 additions and 4 deletions

View file

@ -37,8 +37,6 @@ class forum extends \phpbb\feed\post_base
function open() function open()
{ {
parent::open();
// Check if forum exists // Check if forum exists
$sql = 'SELECT forum_id, forum_name, forum_password, forum_type, forum_options $sql = 'SELECT forum_id, forum_name, forum_password, forum_type, forum_options
FROM ' . FORUMS_TABLE . ' FROM ' . FORUMS_TABLE . '
@ -82,6 +80,8 @@ class forum extends \phpbb\feed\post_base
unset($forum_ids_passworded); unset($forum_ids_passworded);
} }
parent::open();
} }
function get_sql() function get_sql()

View file

@ -37,8 +37,6 @@ class topic extends \phpbb\feed\post_base
function open() function open()
{ {
parent::open();
$sql = 'SELECT f.forum_options, f.forum_password, t.topic_id, t.forum_id, t.topic_visibility, t.topic_title, t.topic_time, t.topic_views, t.topic_posts_approved, t.topic_type $sql = 'SELECT f.forum_options, f.forum_password, t.topic_id, t.forum_id, t.topic_visibility, t.topic_title, t.topic_time, t.topic_views, t.topic_posts_approved, t.topic_type
FROM ' . TOPICS_TABLE . ' t FROM ' . TOPICS_TABLE . ' t
LEFT JOIN ' . FORUMS_TABLE . ' f LEFT JOIN ' . FORUMS_TABLE . ' f
@ -85,6 +83,8 @@ class topic extends \phpbb\feed\post_base
unset($forum_ids_passworded); unset($forum_ids_passworded);
} }
parent::open();
} }
function get_sql() function get_sql()