mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 03:32:49 +08:00
parent
ba96f311a9
commit
0b478379fc
|
@ -194,7 +194,7 @@ class Extension implements Arrayable
|
|||
|
||||
if (file_exists($file)) {
|
||||
$extension = pathinfo($file, PATHINFO_EXTENSION);
|
||||
if (!array_key_exists($extension, self::LOGO_MIMETYPES)) {
|
||||
if (! array_key_exists($extension, self::LOGO_MIMETYPES)) {
|
||||
throw new \RuntimeException('Invalid image type');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user