Updated core, thanks Yomli

This commit is contained in:
markseu 2019-09-05 16:39:17 +02:00
parent 5d8d7293cf
commit 6eab50f0f0

View file

@ -2577,10 +2577,10 @@ class YellowToolbox {
$iterator = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS);
$files = new RecursiveIteratorIterator($iterator, RecursiveIteratorIterator::CHILD_FIRST);
foreach ($files as $file) {
if ($file->isDir()) {
@rmdir($file->getRealPath());
if ($file->getType()=="dir") {
@rmdir($file->getPathname());
} else {
@unlink($file->getRealPath());
@unlink($file->getPathname());
}
}
$ok = @rmdir($path);