// Fixed deleteDirectory function (is_dir is cached and must not be used, because use the result of scandir)

This commit is contained in:
Damien Metzger
2012-12-28 09:47:09 +01:00
parent 321eaa191b
commit 7bebdb5eb5
2 changed files with 2 additions and 4 deletions
@@ -655,9 +655,8 @@ class AdminTranslationsControllerCore extends AdminController
elseif (!preg_match('@^[0-9a-z-_/\\\\]+\.(html|tpl|txt)$@i', $file2check['filename']))
$this->errors[] = sprintf(Tools::displayError('Unidentified file found: %s'), $file2check['filename']);
}
Tools::deleteDirectory($sandbox, true);
}
Tools::deleteDirectory($sandbox, true);
if (count($this->errors))
return false;