]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier.autoload.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier.autoload.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * @file\r
5 * Convenience file that registers autoload handler for HTML Purifier.\r
6 * It also does some sanity checks.\r
7 */\r
8\r
9if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {\r
10 // We need unregister for our pre-registering functionality\r
11 HTMLPurifier_Bootstrap::registerAutoload();\r
12 if (function_exists('__autoload')) {\r
13 // Be polite and ensure that userland autoload gets retained\r
14 spl_autoload_register('__autoload');\r
15 }\r
16} elseif (!function_exists('__autoload')) {\r
17 function __autoload($class)\r
18 {\r
19 return HTMLPurifier_Bootstrap::autoload($class);\r
20 }\r
21}\r
22\r
23if (ini_get('zend.ze1_compatibility_mode')) {\r
24 trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);\r
25}\r
26\r
27// vim: et sw=4 sts=4\r