mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
@@ -194,7 +194,7 @@ class Extension implements Arrayable
|
|||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
$extension = pathinfo($file, PATHINFO_EXTENSION);
|
$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');
|
throw new \RuntimeException('Invalid image type');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user