cvs: pear /HTML_Template_Xipe/Xipe/Filter TagLib.php

From: Date: Sat, 18 Jan 2003 15:29:01 +0000
Subject: cvs: pear /HTML_Template_Xipe/Xipe/Filter TagLib.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8373@lists.php.net to get a copy of this message
cain Sat Jan 18 10:29:01 2003 EDT Modified files: /pear/HTML_Template_Xipe/Xipe/Filter TagLib.php Log: - prevent E_ALL warnings in compiled template Index: pear/HTML_Template_Xipe/Xipe/Filter/TagLib.php diff -u pear/HTML_Template_Xipe/Xipe/Filter/TagLib.php:1.17 pear/HTML_Template_Xipe/Xipe/Filter/TagLib.php:1.18 --- pear/HTML_Template_Xipe/Xipe/Filter/TagLib.php:1.17 Fri Jan 10 08:21:51 2003 +++ pear/HTML_Template_Xipe/Xipe/Filter/TagLib.php Sat Jan 18 10:29:00 2003 @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ -// $Id: TagLib.php,v 1.17 2003/01/10 13:21:51 cain Exp $ +// $Id: TagLib.php,v 1.18 2003/01/18 15:29:00 cain Exp $ // require_once 'HTML/Template/Xipe/Options.php'; @@ -344,8 +344,10 @@ // if it is already once in the code, this takes care of not multiple // times defining functions (macros in this case) // it also works if you compile multiple files with different instances of this filter - // since php checks the variable $___SimpleTemplate_TagLib_includedFile given here - $fileContent = "$_openDel if(!\$___HTML_Template_Xipe_TagLib_includedFile['$fileToInclude'])\\\{ $_closeDel". + // since php checks the variable $___HTML_Template_Xipe_TagLib_includedFile given here + // use isset to prevent E_ALL-warning + $testVar = "\$___HTML_Template_Xipe_TagLib_includedFile['$fileToInclude']"; + $fileContent = "$_openDel if(!isset($testVar) || !$testVar)\\\{ $_closeDel". $fileContent. $_openDel." \$___HTML_Template_Xipe_TagLib_includedFile['$fileToInclude']=true;\\\}".$_closeDel; }

« previous php.pear.cvs (#8373) next »