Compare commits

...
1 Commits
+1 -1
View File
@@ -755,7 +755,7 @@ public static function mime_content_type(string $filepath):string {
throw new Exception("Cannot open finfo context");
}
if (!($mime_type = finfo_file($finfo, $filepath))) {
throw new MDWrongFileType("Cannot get mime type of file: " . basename($filepath));
MDWrongFileType::throw("Cannot get mime type of file: " . basename($filepath), "");
}
return $mime_type;