cvs: smarty / NEWS /libs Smarty.class.php
| From: | Messju Mohr | Date: | Tue, 18 Mar 2003 22:47:16 +0000 |
| Subject: | cvs: smarty / NEWS /libs Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-475@lists.php.net to get a copy of this message | ||
messju Tue Mar 18 17:47:16 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
cleaned up calls to readdir()
Index: smarty/NEWS
diff -u smarty/NEWS:1.317 smarty/NEWS:1.318
--- smarty/NEWS:1.317 Tue Mar 18 09:47:40 2003
+++ smarty/NEWS Tue Mar 18 17:47:16 2003
@@ -1,3 +1,4 @@
+ - cleaned up calls to readdir() (messju)
- fixed bug with passing multiple modifiers to a parameter
(Monte)
- updated docs for html_checkboxes, html_options and html_radios (messju)
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.362 smarty/libs/Smarty.class.php:1.363
--- smarty/libs/Smarty.class.php:1.362 Tue Mar 11 10:31:22 2003
+++ smarty/libs/Smarty.class.php Tue Mar 18 17:47:16 2003
@@ -2142,7 +2142,7 @@
} else {
// remove matching file names
$handle = opendir($auto_base);
- while ($filename = readdir($handle)) {
+ while (false !== ($filename = readdir($handle))) {
if($filename == '.' || $filename == '..') {
continue;
} elseif (substr($auto_base . DIR_SEP . $filename,0,strlen($tname)) == $tname)
{
@@ -2168,7 +2168,7 @@
if($handle = @opendir($dirname)) {
- while (null != ($entry = readdir($handle))) {
+ while (false !== ($entry = readdir($handle))) {
if ($entry != '.' && $entry != '..') {
if (@is_dir($dirname . DIR_SEP . $entry)) {
$this->_rmdir($dirname . DIR_SEP . $entry, $level + 1, $exp_time);