mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
4036b2620b
2 changed files with 11 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue