From aec8a1883e1bf0bb1ea6c2b11a1ff64796425788 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Tue, 9 Feb 2016 11:08:26 +0100 Subject: [PATCH] let autoloader include files for HTMLPurifier --- include/api.php | 5 ----- include/dfrn.php | 1 - include/event.php | 1 - 3 files changed, 7 deletions(-) diff --git a/include/api.php b/include/api.php index 4d206da28e..bddd4cfc7d 100644 --- a/include/api.php +++ b/include/api.php @@ -781,8 +781,6 @@ if((strpos($txt,'<') !== false) || (strpos($txt,'>') !== false)) { - require_once('library/HTMLPurifier.auto.php'); - $txt = html2bb_video($txt); $config = HTMLPurifier_Config::createDefault(); $config->set('Cache.DefinitionImpl', null); @@ -822,9 +820,6 @@ if(requestdata('htmlstatus')) { $txt = requestdata('htmlstatus'); if((strpos($txt,'<') !== false) || (strpos($txt,'>') !== false)) { - - require_once('library/HTMLPurifier.auto.php'); - $txt = html2bb_video($txt); $config = HTMLPurifier_Config::createDefault(); diff --git a/include/dfrn.php b/include/dfrn.php index c4999a08e1..38c7b425fa 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -18,7 +18,6 @@ require_once("include/event.php"); require_once("include/text.php"); require_once("include/oembed.php"); require_once("include/html2bbcode.php"); -require_once("library/HTMLPurifier.auto.php"); /** * @brief This class contain functions to create and send DFRN XML files diff --git a/include/event.php b/include/event.php index 13c414c9e3..a9f054fc2e 100644 --- a/include/event.php +++ b/include/event.php @@ -76,7 +76,6 @@ function format_event_html($ev, $simple = false) { function parse_event($h) { require_once('include/Scrape.php'); - require_once('library/HTMLPurifier.auto.php'); require_once('include/html2bbcode'); $h = '' . $h . ''; -- 2.39.5