From: Jens Frank Date: Sun, 26 Sep 2004 09:51:41 +0000 (+0000) Subject: Avoid PHP warning about undefined constant X-Git-Tag: 1.5.0alpha1~1775 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=87c7a6b3357ab8d5d6b24a5966ff3f06d97cedf4;p=lhc%2Fweb%2Fwiklou.git Avoid PHP warning about undefined constant --- 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 );