mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
Merge branch '3.1.x'
This commit is contained in:
@@ -800,7 +800,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
}
|
||||
else
|
||||
{
|
||||
$bbcode_bitfield = $text_only_message = '';
|
||||
$text_only_message = '';
|
||||
$attach_list = array();
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
@@ -820,7 +820,6 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
if ($return_chars == -1 || utf8_strlen($text_only_message) < ($return_chars + 3))
|
||||
{
|
||||
$row['display_text_only'] = false;
|
||||
$bbcode_bitfield = $bbcode_bitfield | base64_decode($row['bbcode_bitfield']);
|
||||
|
||||
// Does this post have an attachment? If so, add it to the list
|
||||
if ($row['post_attachment'] && $config['allow_attachments'])
|
||||
@@ -840,13 +839,6 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
|
||||
unset($text_only_message);
|
||||
|
||||
// Instantiate BBCode if needed
|
||||
if ($bbcode_bitfield !== '')
|
||||
{
|
||||
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
}
|
||||
|
||||
// Pull attachment data
|
||||
if (sizeof($attach_list))
|
||||
{
|
||||
|
Reference in New Issue
Block a user