mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/217] Use positive parameter statement for bbcode_init()
PHPBB3-217
This commit is contained in:
parent
6585d938d2
commit
d44b6ba5ca
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue