1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

Merge branch '3.2.x'

This commit is contained in:
Marc Alexander
2018-11-17 22:18:13 +01:00
2 changed files with 11 additions and 2 deletions

View File

@@ -35,9 +35,18 @@ class bbcode
/** /**
* Constructor * Constructor
* Init bbcode cache entries if bitfield is specified
*/ */
function __construct($bitfield = '') function __construct($bitfield = '')
{
$this->bbcode_set_bitfield($bitfield);
}
/**
* Init bbcode cache entries if bitfield is specified
*
* @param string $bbcode_bitfield The bbcode bitfield
*/
function bbcode_set_bitfield($bitfield = '')
{ {
if ($bitfield) if ($bitfield)
{ {

View File

@@ -627,7 +627,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags, $censor_text
} }
else else
{ {
$bbcode->bbcode($bitfield); $bbcode->bbcode_set_bitfield($bitfield);
} }
$bbcode->bbcode_second_pass($text, $uid); $bbcode->bbcode_second_pass($text, $uid);