This commit is contained in:
wangyidong
2019-01-09 14:23:19 +08:00
parent 9285458d46
commit b2d8a9537f
+4 -4
View File
@@ -9,12 +9,12 @@
if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {
// We need unregister for our pre-registering functionality
HTMLPurifier_Bootstrap::registerAutoload();
if (function_exists('__autoload')) {
if (function_exists('purifierAutoload')) {
// Be polite and ensure that userland autoload gets retained
spl_autoload_register('__autoload');
spl_autoload_register('purifierAutoload');
}
} elseif (!function_exists('__autoload')) {
function __autoload($class)
} elseif (!function_exists('purifierAutoload')) {
function purifierAutoload($class)
{
return HTMLPurifier_Bootstrap::autoload($class);
}