Merge branch 'master' of https://gitea.armuli.eu/museum-digital/MD_STD
This commit is contained in:
commit
d7c89275e7
1 file changed
+7
-1
+7
-1
@@ -63,7 +63,13 @@ public static function scandir(string $filepath):array {
|
|||||||
throw new MDFileDoesNotExist("There is no file {$filepath}");
|
throw new MDFileDoesNotExist("There is no file {$filepath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return \array_values(\array_diff($output, ['.', '..', '.git']));
|
// Remove unwanted files from list
|
||||||
|
$output = \array_diff($output, ['.', '..', '.git']);
|
||||||
|
|
||||||
|
// Return array values, to make it a list rather than an associative array.
|
||||||
|
// This should be done in a separate line, as it observably leads to a
|
||||||
|
// significant reduction in the used RAM.
|
||||||
|
return \array_values($output);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user