summaryrefslogtreecommitdiffstats
path: root/lib/private/preview/svg.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-02-04 12:59:14 +0100
committerGeorg Ehrke <developer@georgehrke.com>2014-02-04 12:59:14 +0100
commitd55ef442cd861d04b9ccfd4493aedf0c9a4164ff (patch)
treee335065d3e4b8a809877e80ed9d2066db1731114 /lib/private/preview/svg.php
parent49f0f9f2f67c3494628f14c7a5c383596879ec12 (diff)
downloadnextcloud-server-d55ef442cd861d04b9ccfd4493aedf0c9a4164ff.tar.gz
nextcloud-server-d55ef442cd861d04b9ccfd4493aedf0c9a4164ff.zip
properly check if pdf and svg modules are installed
Diffstat (limited to 'lib/private/preview/svg.php')
-rw-r--r--lib/private/preview/svg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/svg.php b/lib/private/preview/svg.php
index b49e51720fa..07a37e8f8c1 100644
--- a/lib/private/preview/svg.php
+++ b/lib/private/preview/svg.php
@@ -7,7 +7,7 @@
*/
namespace OC\Preview;
-if (extension_loaded('imagick')) {
+if (extension_loaded('imagick') && count(\Imagick::queryFormats("SVG")) === 1) {
class SVG extends Provider {