mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-23 19:51:26 +02:00
[ticket/217] Use positive parameter statement for bbcode_init()
PHPBB3-217
This commit is contained in:
@ -102,7 +102,7 @@ class bbcode_firstpass extends bbcode
|
||||
/**
|
||||
* Init bbcode data for later parsing
|
||||
*/
|
||||
function bbcode_init($no_custom_bbcode = false)
|
||||
function bbcode_init($allow_custom_bbcode = true)
|
||||
{
|
||||
static $rowset;
|
||||
|
||||
@ -135,7 +135,7 @@ class bbcode_firstpass extends bbcode
|
||||
$this->parsed_items[$tag] = 0;
|
||||
}
|
||||
|
||||
if ($no_custom_bbcode)
|
||||
if (!$allow_custom_bbcode)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class phpbb_url_bbcode_test extends phpbb_test_case
|
||||
{
|
||||
$bbcode = new bbcode_firstpass();
|
||||
$bbcode->message = $message;
|
||||
$bbcode->bbcode_init(true);
|
||||
$bbcode->bbcode_init(false);
|
||||
$bbcode->parse_bbcode();
|
||||
$this->assertNotEquals($bbcode->message, '[url][/url]');
|
||||
$this->assertNotEquals($bbcode->message, $message);
|
||||
|
Reference in New Issue
Block a user