Fix wrong filename
This commit is contained in:
1 parent
481233efad
commit
1c68b4fa98
1 file changed
+1
-1
+1
-1
@@ -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, ['.', '..']));
|
||||
|
||||
Reference in new issue
Block a user