Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / ezyang / htmlpurifier / library / HTMLPurifier.autoload.php
1 <?php
2
3 /**
4  * @file
5  * Convenience file that registers autoload handler for HTML Purifier.
6  * It also does some sanity checks.
7  */
8
9 if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {
10     // We need unregister for our pre-registering functionality
11     HTMLPurifier_Bootstrap::registerAutoload();
12     if (function_exists('__autoload')) {
13         // Be polite and ensure that userland autoload gets retained
14         spl_autoload_register('__autoload');
15     }
16 } elseif (!function_exists('__autoload')) {
17     require dirname(__FILE__) . '/HTMLPurifier.autoload-legacy.php';
18 }
19
20 if (ini_get('zend.ze1_compatibility_mode')) {
21     trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);
22 }
23
24 // vim: et sw=4 sts=4