X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/afeefb526fa1db0797362edb2227739883a0b617..93ebb6cfe68748103b065768c7cb530ebefc7543:/src/BIFE/Parser.php diff --git a/src/BIFE/Parser.php b/src/BIFE/Parser.php index 66be149..4598ea1 100644 --- a/src/BIFE/Parser.php +++ b/src/BIFE/Parser.php @@ -128,6 +128,9 @@ class BIFE_Parser { function startElement($parser, $name, $attrs) // ~X2C { $class = "BIFE_$name"; + if (!class_exists($class)) { + @include_once 'BIFE/' . ucfirst(strtolower($name)) . '.php'; + } if (class_exists($class)) { $obj =& new $class($attrs); if (!is_a($obj, 'bife_widget')) { @@ -259,4 +262,4 @@ class BIFE_Parser { } // -X2C Class :Parser -?> +?> \ No newline at end of file