diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-02-18 18:02:23 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-02-18 18:02:23 +0100 |
commit | 098854a822846ba3aa222acb95d4028aa5cc830c (patch) | |
tree | 3d1102e52c6eb2a6715d0f363f8d39602aba3438 /phpBB/includes/functions_posting.php | |
parent | 60f60acea31bd5c531ab757bae10dfb741c1b6ad (diff) | |
parent | 4559aca72300763e3f227b62e23bb4ef3f2c09ec (diff) | |
download | forums-098854a822846ba3aa222acb95d4028aa5cc830c.tar forums-098854a822846ba3aa222acb95d4028aa5cc830c.tar.gz forums-098854a822846ba3aa222acb95d4028aa5cc830c.tar.bz2 forums-098854a822846ba3aa222acb95d4028aa5cc830c.tar.xz forums-098854a822846ba3aa222acb95d4028aa5cc830c.zip |
Merge pull request #3395 from s9e/ticket/13595
[ticket/13595] Remove unused instances of the bbcode class
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)) |