aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Controller/CheckSetupController.php
diff options
context:
space:
mode:
authornhirokinet <nhirokinet@nhiroki.net>2020-10-25 11:47:43 +0000
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-11-02 11:29:08 +0100
commit830348dbee748bb76bc68f65ad8ccac9356d14f7 (patch)
tree333dfa4d4a9aab00d3ff5cef033e8491e0a34bde /apps/settings/lib/Controller/CheckSetupController.php
parenta3e4094792f2867b36f7baad97b4ec1066418ae4 (diff)
downloadnextcloud-server-830348dbee748bb76bc68f65ad8ccac9356d14f7.tar.gz
nextcloud-server-830348dbee748bb76bc68f65ad8ccac9356d14f7.zip
Add SVG support check to setup check
Signed-off-by: nhirokinet <nhirokinet@nhiroki.net>
Diffstat (limited to 'apps/settings/lib/Controller/CheckSetupController.php')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index 94eb7d2a715..76b97eb9dc4 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -681,6 +681,10 @@ Raw output
return false;
}
+ protected function imageMagickLacksSVGSupport(): bool {
+ return extension_loaded('imagick') && count(\Imagick::queryFormats('SVG')) === 0;
+ }
+
/**
* @return DataResponse
*/
@@ -726,6 +730,7 @@ Raw output
'isMysqlUsedWithoutUTF8MB4' => $this->isMysqlUsedWithoutUTF8MB4(),
'isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed' => $this->isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed(),
'reverseProxyGeneratedURL' => $this->urlGenerator->getAbsoluteURL('index.php'),
+ 'imageMagickLacksSVGSupport' => $this->imageMagickLacksSVGSupport(),
PhpDefaultCharset::class => ['pass' => $phpDefaultCharset->run(), 'description' => $phpDefaultCharset->description(), 'severity' => $phpDefaultCharset->severity()],
PhpOutputBuffering::class => ['pass' => $phpOutputBuffering->run(), 'description' => $phpOutputBuffering->description(), 'severity' => $phpOutputBuffering->severity()],
LegacySSEKeyFormat::class => ['pass' => $legacySSEKeyFormat->run(), 'description' => $legacySSEKeyFormat->description(), 'severity' => $legacySSEKeyFormat->severity(), 'linkToDocumentation' => $legacySSEKeyFormat->linkToDocumentation()],