Compare commits
1
Commits
14997d5b56
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
961a5e133d
|
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user