Optimizer settings gardening

This commit is contained in:
2021-01-06 19:30:33 +01:00
parent 05117f6836
commit 1fcb640029
5 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ class optimizer
public static function cleanup_dir(string $dir, bool $recursion = false) : void
{
$dir = rtrim(str_replace("\\", "/", $dir), "/");
$dir = utils::to_unix_slashes_without_trail($dir);
$glob = glob(utils::globsafe($dir) . "/*");
foreach ($glob as $file)
{