mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 08:21:52 +00:00
4c24a51054
- Improve documentation for stub files - Synchronize stub files between extras/ and library/ - Remove unnecessary include in function file - Remove special treatment of Bootstrap - Improve docs for HTMLPurifier, converted singleton to use static member variables and removed reference - Add HTMLPurifier.path.php stub file - Update sample test settings - Reorganize includes in test files git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1559 48356398-32a2-884e-a903-53898d9a118a
19 lines
512 B
PHP
19 lines
512 B
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Convenience file that registers autoload handler for HTML Purifier.
|
|
*/
|
|
|
|
if (function_exists('spl_autoload_register')) {
|
|
spl_autoload_register(array('HTMLPurifierExtras', 'autoload'));
|
|
if (function_exists('__autoload')) {
|
|
// Be polite and ensure that userland autoload gets retained
|
|
spl_autoload_register('__autoload');
|
|
}
|
|
} elseif (!function_exists('__autoload')) {
|
|
function __autoload($class) {
|
|
return HTMLPurifierExtras::autoload($class);
|
|
}
|
|
}
|