1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-30 19:00:10 +02:00

Add support for autoload. We're not, however, using it by default.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1511 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-01-21 18:43:59 +00:00
parent ff72b2d012
commit 43a5ef3cc6
6 changed files with 29 additions and 7 deletions

View File

@@ -109,12 +109,12 @@ class HTMLPurifier_LanguageFactory
// PHP5/APC deps bug workaround can go here
// you can bypass the conditional include by loading the
// file yourself
if (file_exists($file) && !class_exists($class)) {
if (file_exists($file) && !class_exists($class, false)) {
include_once $file;
}
}
if (!class_exists($class)) {
if (!class_exists($class, false)) {
// go fallback
$fallback = HTMLPurifier_LanguageFactory::getFallbackFor($code);
$depth++;