diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-02-04 12:59:14 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-02-04 12:59:14 +0100 |
commit | d55ef442cd861d04b9ccfd4493aedf0c9a4164ff (patch) | |
tree | e335065d3e4b8a809877e80ed9d2066db1731114 /lib/private/preview/office.php | |
parent | 49f0f9f2f67c3494628f14c7a5c383596879ec12 (diff) | |
download | nextcloud-server-d55ef442cd861d04b9ccfd4493aedf0c9a4164ff.tar.gz nextcloud-server-d55ef442cd861d04b9ccfd4493aedf0c9a4164ff.zip |
properly check if pdf and svg modules are installed
Diffstat (limited to 'lib/private/preview/office.php')
-rw-r--r-- | lib/private/preview/office.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/office.php b/lib/private/preview/office.php index 7a4826c76ec..884b6e7dc9b 100644 --- a/lib/private/preview/office.php +++ b/lib/private/preview/office.php @@ -6,7 +6,7 @@ * See the COPYING-README file. */ //both, libreoffice backend and php fallback, need imagick -if (extension_loaded('imagick')) { +if (extension_loaded('imagick') && count(\Imagick::queryFormats("PDF")) === 1) { $isShellExecEnabled = \OC_Helper::is_function_enabled('shell_exec'); // LibreOffice preview is currently not supported on Windows |