|
|
|
|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace tts; |
|
|
|
|
|
|
|
|
|
if (!defined('HTMLPURIFIER_PREFIX')) { |
|
|
|
|
define('HTMLPURIFIER_PREFIX', TTS_VENDOR . 'ezyang/htmlpurifier/library'); |
|
|
|
|
} |
|
|
|
|
@ -14,7 +16,7 @@ class HTMLPurifier_Bootstrap { |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public static function autoload($class) { |
|
|
|
|
$file = HTMLPurifier_Bootstrap::getPath($class); |
|
|
|
|
$file = \tts\HTMLPurifier_Bootstrap::getPath($class); |
|
|
|
|
if (!$file) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
@ -53,7 +55,7 @@ class HTMLPurifier_Bootstrap { |
|
|
|
|
* "Pre-registers" our autoloader on the SPL stack. |
|
|
|
|
*/ |
|
|
|
|
public static function registerAutoload() { |
|
|
|
|
$autoload = array('HTMLPurifier_Bootstrap', 'autoload'); |
|
|
|
|
$autoload = array('\tts\HTMLPurifier_Bootstrap', 'autoload'); |
|
|
|
|
if (($funcs = spl_autoload_functions()) === false) { |
|
|
|
|
spl_autoload_register($autoload); |
|
|
|
|
} elseif (function_exists('spl_autoload_unregister')) { |
|
|
|
|
|