fix .cache check

This commit is contained in:
mohrt
2001-02-01 20:08:26 +00:00
parent 7976e25b7a
commit f16a83bf55
2 changed files with 2 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ class Smarty
while($curr_file = readdir($this->cache_dir)) {
if ($curr_file == '.' || $curr_file == '..')
continue;
if(substr($curr_file,-4) == '.cache')
if(substr($curr_file,-6) == '.cache')
unlink($curr_file);
}
}

View File

@@ -266,7 +266,7 @@ class Smarty
while($curr_file = readdir($this->cache_dir)) {
if ($curr_file == '.' || $curr_file == '..')
continue;
if(substr($curr_file,-4) == '.cache')
if(substr($curr_file,-6) == '.cache')
unlink($curr_file);
}
}