From dfa17e91744bfc77c7ff26881c69e07014a6b937 Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Wed, 19 Jun 2019 04:22:56 +0800 Subject: Allow setting favicon with a .ico file Signed-off-by: Gary Kim --- apps/theming/lib/ImageManager.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/theming') diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index 3fe76899dcd..2b58fa499f4 100644 --- a/apps/theming/lib/ImageManager.php +++ b/apps/theming/lib/ImageManager.php @@ -260,6 +260,11 @@ class ImageManager { $supportedFormats[] = 'image/svg'; } + if ($key === 'favicon') { + $supportedFormats[] = 'image/x-icon'; + $supportedFormats[] = 'image/vnd.microsoft.icon'; + } + return $supportedFormats; } -- cgit v1.2.3