Fix wrong filename

This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2020-07-26 15:13:03 +02:00
1 parent 481233efad
commit 1c68b4fa98
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ public static function file_get_contents(string $filename):string {
public static function scandir(string $filepath):array {
if (!is_dir($filepath) || ($output = scandir($filepath)) === false) {
throw new MDFileDoesNotExist("There is no file {$filename}");
throw new MDFileDoesNotExist("There is no file {$filepath}");
}
return array_values(array_diff($output, ['.', '..']));