diff options
Diffstat (limited to 'phpBB/includes/functions_posting.php')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 11 | 
1 files changed, 1 insertions, 10 deletions
| diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index f3c49badfe..a06d6f4c35 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1036,7 +1036,7 @@ function load_drafts($topic_id = 0, $forum_id = 0, $id = 0, $pm_action = '', $ms  */  function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id = 0, $show_quote_button = true)  { -	global $user, $auth, $db, $template, $bbcode, $cache; +	global $user, $auth, $db, $template, $cache;  	global $config, $phpbb_root_path, $phpEx, $phpbb_container, $phpbb_dispatcher;  	$phpbb_content_visibility = $phpbb_container->get('content.visibility'); @@ -1094,13 +1094,11 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id  	$sql = $db->sql_build_query('SELECT', $sql_ary);  	$result = $db->sql_query($sql); -	$bbcode_bitfield = '';  	$rowset = array();  	$has_attachments = false;  	while ($row = $db->sql_fetchrow($result))  	{  		$rowset[$row['post_id']] = $row; -		$bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']);  		if ($row['post_attachment'])  		{ @@ -1109,13 +1107,6 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id  	}  	$db->sql_freeresult($result); -	// Instantiate BBCode class -	if (!isset($bbcode) && $bbcode_bitfield !== '') -	{ -		include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx); -		$bbcode = new bbcode(base64_encode($bbcode_bitfield)); -	} -  	// Grab extensions  	$extensions = $attachments = array();  	if ($has_attachments && $auth->acl_get('u_download') && $auth->acl_get('f_download', $forum_id)) | 
