Support for PHP 7 instead of PHP 4

Refactor control_html class to use constructor for initialization
This commit is contained in:
Aaron 2025-11-15 15:40:33 -05:00
parent 1e08e2ba83
commit b51e86fb73

View File

@ -208,9 +208,10 @@ function htmlposts_parse(&$message)
{ {
public $html_enabled; public $html_enabled;
function control_html() function __construct()
{ {
// Is it enabled already? Save it in a var to later disallow disabling // Is it enabled already? Save it in a var to later disallow disabling
global $parser;
$this->html_enabled = $parser->options['allow_html']; $this->html_enabled = $parser->options['allow_html'];
} }