Avoid PHP warning about undefined constant
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 26 Sep 2004 09:51:41 +0000 (09:51 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 26 Sep 2004 09:51:41 +0000 (09:51 +0000)
includes/SkinPHPTal.php

index 7280da3..a62db6c 100644 (file)
@@ -131,7 +131,7 @@ class SkinPHPTal extends Skin {
         * @access private
         */
        function &setupTemplate( $file, $repository=false, $cache_dir=false ) {
-               if( NEW_PHPTAL ) {
+               if( defined( 'NEW_PHPTAL' ) && NEW_PHPTAL ) {
                        return new PHPTAL_version_bridge( $file, $repository, $cache_dir );
                } else {
                        return new PHPTAL( $file, $repository, $cache_dir );