aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Controller/IconController.php
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2018-09-02 14:17:17 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-09-05 20:50:21 +0200
commit38ea5d14b38d86fe09acf0df34857c9eba6e1c6f (patch)
treea598a2f6c5ecfacefcdf0c4fc9ae640925558cd7 /apps/theming/lib/Controller/IconController.php
parent0899f2cbc43b05005dc045db001c41e199192f67 (diff)
downloadnextcloud-server-38ea5d14b38d86fe09acf0df34857c9eba6e1c6f.tar.gz
nextcloud-server-38ea5d14b38d86fe09acf0df34857c9eba6e1c6f.zip
Disables SVG favicon uploads when imagemagick is missing.
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'apps/theming/lib/Controller/IconController.php')
-rw-r--r--apps/theming/lib/Controller/IconController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/lib/Controller/IconController.php b/apps/theming/lib/Controller/IconController.php
index a2727546e09..bffabf43dd7 100644
--- a/apps/theming/lib/Controller/IconController.php
+++ b/apps/theming/lib/Controller/IconController.php
@@ -115,7 +115,7 @@ class IconController extends Controller {
$response = null;
$iconFile = null;
try {
- $iconFile = $this->imageManager->getImage('favicon');
+ $iconFile = $this->imageManager->getImage('favicon', false);
$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
} catch (NotFoundException $e) {
}