HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/extras/HTMLPurifierExtras.autoload.php
Go to the documentation of this file.
00001 <?php
00002 
00013 if (function_exists('spl_autoload_register')) {
00014     spl_autoload_register(array('HTMLPurifierExtras', 'autoload'));
00015     if (function_exists('__autoload')) {
00016         // Be polite and ensure that userland autoload gets retained
00017         spl_autoload_register('__autoload');
00018     }
00019 } elseif (!function_exists('__autoload')) {
00020     function __autoload($class) {
00021         return HTMLPurifierExtras::autoload($class);
00022     }
00023 }
00024 
00025 // vim: et sw=4 sts=4