From 87c7a6b3357ab8d5d6b24a5966ff3f06d97cedf4 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 26 Sep 2004 09:51:41 +0000 Subject: [PATCH] Avoid PHP warning about undefined constant --- includes/SkinPHPTal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 7280da336d..a62db6c72a 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -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 ); -- 2.20.1