1
0
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:
rxu
2011-06-06 00:50:53 +08:00
parent 6585d938d2
commit d44b6ba5ca
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);