mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
make it work like viewtopic
git-svn-id: file:///svn/phpbb/trunk@7373 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9a7e40d142
commit
897e0f952d
1 changed files with 3 additions and 1 deletions
|
@ -2507,7 +2507,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags)
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = str_replace("\n", '<br />', censor_text($text));
|
$text = censor_text($text);
|
||||||
|
|
||||||
// Parse bbcode if bbcode uid stored and bbcode enabled
|
// Parse bbcode if bbcode uid stored and bbcode enabled
|
||||||
if ($uid && ($flags & OPTION_FLAG_BBCODE))
|
if ($uid && ($flags & OPTION_FLAG_BBCODE))
|
||||||
|
@ -2530,6 +2530,8 @@ function generate_text_for_display($text, $uid, $bitfield, $flags)
|
||||||
$bbcode->bbcode_second_pass($text, $uid);
|
$bbcode->bbcode_second_pass($text, $uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$text = str_replace("\n", '<br />', $text);
|
||||||
|
|
||||||
$text = smiley_text($text, !($flags & OPTION_FLAG_SMILIES));
|
$text = smiley_text($text, !($flags & OPTION_FLAG_SMILIES));
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
|
Loading…
Add table
Reference in a new issue