Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
629 B

  1. <?php
  2. /**
  3. * @file
  4. * Convenience file that registers autoload handler for HTML Purifier.
  5. */
  6. if (function_exists('spl_autoload_register') && function_exists('spl_autoload_unregister')) {
  7. // We need unregister for our pre-registering functionality
  8. HTMLPurifier_Bootstrap::registerAutoload();
  9. if (function_exists('__autoload')) {
  10. // Be polite and ensure that userland autoload gets retained
  11. spl_autoload_register('__autoload');
  12. }
  13. } elseif (!function_exists('__autoload')) {
  14. function __autoload($class) {
  15. return HTMLPurifier_Bootstrap::autoload($class);
  16. }
  17. }
  18. // vim: et sw=4 sts=4