cvs: smarty / NEWS /libs Smarty.class.php

From: Date: Thu, 20 Mar 2003 09:20:24 +0000
Subject: cvs: smarty / NEWS /libs Smarty.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-483@lists.php.net to get a copy of this message
messju Thu Mar 20 04:20:24 2003 EDT Modified files: /smarty NEWS /smarty/libs Smarty.class.php Log: removed notice of undefined var in _rm_auto() Index: smarty/NEWS diff -u smarty/NEWS:1.321 smarty/NEWS:1.322 --- smarty/NEWS:1.321 Wed Mar 19 17:52:22 2003 +++ smarty/NEWS Thu Mar 20 04:20:23 2003 @@ -1,3 +1,4 @@ + - removed notice of undefined var in _rm_auto() (messju) - added warning message when an array is passed as the "checked" value of html_radios (Monte) - fixed errormessage in _compile_smarty_ref() (messju) Index: smarty/libs/Smarty.class.php diff -u smarty/libs/Smarty.class.php:1.363 smarty/libs/Smarty.class.php:1.364 --- smarty/libs/Smarty.class.php:1.363 Tue Mar 18 17:47:16 2003 +++ smarty/libs/Smarty.class.php Thu Mar 20 04:20:24 2003 @@ -2142,11 +2142,12 @@ } else { // remove matching file names $handle = opendir($auto_base); + $res = true; while (false !== ($filename = readdir($handle))) { if($filename == '.' || $filename == '..') { continue; } elseif (substr($auto_base . DIR_SEP . $filename,0,strlen($tname)) == $tname) { - $this->_unlink($auto_base . DIR_SEP . $filename, $exp_time); + $res &= (bool)$this->_unlink($auto_base . DIR_SEP . $filename, $exp_time); } } }

« previous php.smarty.cvs (#483) next »