1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-10 01:06:20 +02:00

Add support for autoload. We're not, however, using it by default.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1511 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-01-21 18:43:59 +00:00
parent ff72b2d012
commit 43a5ef3cc6
6 changed files with 29 additions and 7 deletions

View File

@ -0,0 +1,7 @@
<?php
if (function_exists('spl_autoload_register')) {
spl_autoload_register(array('HTMLPurifier', 'autoload'));
} elseif (!function_exists('__autoload')) {
function __autoload($class) {return HTMLPurifier::autoload($class);}
}