mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
check for additional empty config variables...
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10249 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5553cfc2ed
commit
b5c4dc3284
1 changed files with 5 additions and 10 deletions
|
@ -1064,17 +1064,12 @@ class parse_message extends bbcode_firstpass
|
|||
|
||||
$this->mode = $mode;
|
||||
|
||||
if (!isset($config['max_' . $mode . '_chars']))
|
||||
foreach (array('chars', 'smilies', 'urls', 'font_size', 'img_height', 'img_width') as $key)
|
||||
{
|
||||
$config['max_' . $mode . '_chars'] = 0;
|
||||
}
|
||||
if (!isset($config['max_' . $mode . '_smilies']))
|
||||
{
|
||||
$config['max_' . $mode . '_smilies'] = 0;
|
||||
}
|
||||
if (!isset($config['max_' . $mode . '_urls']))
|
||||
{
|
||||
$config['max_' . $mode . '_urls'] = 0;
|
||||
if (!isset($config['max_' . $mode . '_' . $key]))
|
||||
{
|
||||
$config['max_' . $mode . '_' . $key] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$this->allow_img_bbcode = $allow_img_bbcode;
|
||||
|
|
Loading…
Add table
Reference in a new issue