mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
cleaned up calls to readdir()
This commit is contained in:
1
NEWS
1
NEWS
@@ -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)
|
||||
|
@@ -2142,7 +2142,7 @@ class Smarty
|
||||
} 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 @@ class Smarty
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user