Files
luos/thirdparty/HTMLPurifier/HTMLPurifier.autoload.php

19 lines
423 B
PHP
Raw Normal View History

2017-08-02 16:06:56 -04:00
<?php
/**
* @file
* Convenience file that registers autoload handler for HTML Purifier.
* It also does some sanity checks.
*/
2022-05-13 17:09:51 -04:00
spl_autoload_register(function($class)
{
return HTMLPurifier_Bootstrap::autoload($class);
});
2017-08-02 16:06:56 -04:00
if (ini_get('zend.ze1_compatibility_mode')) {
trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);
}
// vim: et sw=4 sts=4