mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/16276] Fix bbcode_firstpass undefined mode property
PHPBB3-16276
This commit is contained in:
parent
72747ed686
commit
82e61f501a
2 changed files with 2 additions and 2 deletions
|
@ -46,6 +46,7 @@ class bbcode_firstpass extends bbcode
|
|||
var $message = '';
|
||||
var $warn_msg = array();
|
||||
var $parsed_items = array();
|
||||
var $mode;
|
||||
|
||||
/**
|
||||
* Parse BBCode
|
||||
|
@ -1128,8 +1129,6 @@ class parse_message extends bbcode_firstpass
|
|||
var $allow_quote_bbcode = true;
|
||||
var $allow_url_bbcode = true;
|
||||
|
||||
var $mode;
|
||||
|
||||
/**
|
||||
* The plupload object used for dealing with attachments
|
||||
* @var \phpbb\plupload\plupload
|
||||
|
|
|
@ -255,6 +255,7 @@ class phpbb_bbcode_parser_test extends \phpbb_test_case
|
|||
$symfony_request = new \phpbb\symfony_request($request);
|
||||
|
||||
$bbcode = new bbcode_firstpass();
|
||||
$bbcode->mode = 'post';
|
||||
$bbcode->message = $message;
|
||||
$bbcode->bbcode_init(false);
|
||||
$bbcode->parse_bbcode();
|
||||
|
|
Loading…
Add table
Reference in a new issue