Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2019-06-18 23:22:56 +0300
committerGary Kim <gary@garykim.dev>2020-10-15 01:19:23 +0300
commitdfa17e91744bfc77c7ff26881c69e07014a6b937 (patch)
tree9874dd0c9bd2f4590536f1507c398bbc290764ec /apps/theming
parent02fa6a77c3913df5a77c834388c76fef61e644fe (diff)
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;
}