mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
Initial commit for extra class hierarchies FSTools and ConfigSchema.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1518 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -32,6 +32,19 @@ htmlpurifier_parse_args($AC, $aliases);
|
||||
// clean out cache if necessary
|
||||
if ($AC['flush']) shell_exec('php ../maintenance/flush-definition-cache.php');
|
||||
|
||||
// setup our own autoload for earlier PHP versions
|
||||
if (!function_exists('spl_autoload_register')) {
|
||||
function __autoload($class) {
|
||||
return // we're using the fact that once one OR is true, the rest is skipped
|
||||
HTMLPurifier_Bootstrap::autoload($class) ||
|
||||
HTMLPurifierExtras::autoload($class);
|
||||
}
|
||||
}
|
||||
|
||||
// initialize and load alternative classes
|
||||
require_once '../extras/HTMLPurifierExtras.auto.php';
|
||||
|
||||
|
||||
// initialize and load HTML Purifier
|
||||
// use ?standalone to load the alterative standalone stub
|
||||
if ($AC['standalone']) {
|
||||
|
Reference in New Issue
Block a user