Support for PHP 7 instead of PHP 4
Refactor control_html class to use constructor for initialization
This commit is contained in:
parent
1e08e2ba83
commit
b51e86fb73
@ -208,9 +208,10 @@ function htmlposts_parse(&$message)
|
||||
{
|
||||
public $html_enabled;
|
||||
|
||||
function control_html()
|
||||
function __construct()
|
||||
{
|
||||
// Is it enabled already? Save it in a var to later disallow disabling
|
||||
global $parser;
|
||||
$this->html_enabled = $parser->options['allow_html'];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user