Fix wrong filename

This commit is contained in:
Joshua Ramon Enslin 2020-07-26 15:13:03 +02:00 committed by Stefan Rohde-Enslin
parent 481233efad
commit 1c68b4fa98

View File

@ -44,7 +44,7 @@ class MD_STD {
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, ['.', '..']));