From ef6a1c92749156b583225ba0a4af76b7e6aca924 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 15 May 2008 23:22:34 +0000 Subject: [PATCH] Allow for users to load Language class files themselves. Messages are still HTML Purifier dependent; we need to figure out a way around that. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1725 48356398-32a2-884e-a903-53898d9a118a --- library/HTMLPurifier/LanguageFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/HTMLPurifier/LanguageFactory.php b/library/HTMLPurifier/LanguageFactory.php index 24ec7544..296999b8 100644 --- a/library/HTMLPurifier/LanguageFactory.php +++ b/library/HTMLPurifier/LanguageFactory.php @@ -100,7 +100,7 @@ class HTMLPurifier_LanguageFactory } else { $class = 'HTMLPurifier_Language_' . $pcode; $file = $this->dir . '/Language/classes/' . $code . '.php'; - if (file_exists($file) && class_exists($class)) { + if (file_exists($file) || class_exists($class, false)) { $lang = new $class($config, $context); } else { // Go fallback