Update Kirby to 3.7.4

This commit is contained in:
Lukas Bestle
2022-08-23 21:36:13 +02:00
parent 435b9f4541
commit d89a0a647c
674 changed files with 212 additions and 61 deletions

8
kirby/src/Filesystem/Dir.php Executable file → Normal file
View File

@@ -537,7 +537,7 @@ class Dir
}
if (is_link($dir) === true) {
return unlink($dir);
return F::unlink($dir);
}
foreach (scandir($dir) as $childName) {
@@ -547,12 +547,10 @@ class Dir
$child = $dir . '/' . $childName;
if (is_link($child) === true) {
unlink($child);
} elseif (is_dir($child) === true) {
if (is_dir($child) === true && is_link($child) === false) {
static::remove($child);
} else {
F::remove($child);
F::unlink($child);
}
}