Allow setting favicon with a .ico file

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim 2019-06-19 04:22:56 +08:00
parent 02fa6a77c3
commit dfa17e9174
No known key found for this signature in database
GPG Key ID: 9349B59FB54594AC
1 changed files with 5 additions and 0 deletions

View File

@ -260,6 +260,11 @@ class ImageManager {
$supportedFormats[] = 'image/svg';
}
if ($key === 'favicon') {
$supportedFormats[] = 'image/x-icon';
$supportedFormats[] = 'image/vnd.microsoft.icon';
}
return $supportedFormats;
}