From 5ee6ffe20f8962c731d5480c6fdeee83ff4cef5a Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 7 Sep 2006 02:13:17 +0000 Subject: [PATCH] Defer HTMLDefinition include to the classes that are actually tightly coupled to it. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@391 48356398-32a2-884e-a903-53898d9a118a --- library/HTMLPurifier.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/HTMLPurifier.php b/library/HTMLPurifier.php index e656d79f..c2a3c6e8 100644 --- a/library/HTMLPurifier.php +++ b/library/HTMLPurifier.php @@ -39,11 +39,13 @@ License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - + +// almost every class has an undocumented dependency to these, so make sure +// they get included require_once 'HTMLPurifier/ConfigDef.php'; require_once 'HTMLPurifier/Config.php'; + require_once 'HTMLPurifier/Lexer.php'; -require_once 'HTMLPurifier/HTMLDefinition.php'; require_once 'HTMLPurifier/Generator.php'; require_once 'HTMLPurifier/Strategy/Core.php'; require_once 'HTMLPurifier/Encoder.php';