summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2019-06-19 04:22:56 +0800
committerGary Kim <gary@garykim.dev>2020-10-14 18:19:23 -0400
commitdfa17e91744bfc77c7ff26881c69e07014a6b937 (patch)
tree9874dd0c9bd2f4590536f1507c398bbc290764ec /apps/theming
parent02fa6a77c3913df5a77c834388c76fef61e644fe (diff)
downloadnextcloud-server-dfa17e91744bfc77c7ff26881c69e07014a6b937.tar.gz
nextcloud-server-dfa17e91744bfc77c7ff26881c69e07014a6b937.zip
Allow setting favicon with a .ico file
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/ImageManager.php5
1 files changed, 5 insertions, 0 deletions
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;
}