mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
fix .cache check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user