public static function autoload($class) { $path = HTMLPurifierExtras::getPath($class); if (!$path) { return false; } require $path; return true; }
function __autoload($class) { if (!function_exists('spl_autoload_register')) { if (HTMLPurifier_Bootstrap::autoload($class)) { return true; } if (HTMLPurifierExtras::autoload($class)) { return true; } } require str_replace('_', '/', $class) . '.php'; return true; }
function __autoload($class) { return HTMLPurifierExtras::autoload($class); }