From 830348dbee748bb76bc68f65ad8ccac9356d14f7 Mon Sep 17 00:00:00 2001 From: nhirokinet Date: Sun, 25 Oct 2020 11:47:43 +0000 Subject: Add SVG support check to setup check Signed-off-by: nhirokinet --- apps/settings/lib/Controller/CheckSetupController.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/settings/lib/Controller/CheckSetupController.php') 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()], -- cgit v1.2.3