summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Paroz <oparoz@users.noreply.github.com>2014-09-02 22:11:49 +0200
committerOlivier Paroz <oparoz@users.noreply.github.com>2014-09-02 22:11:49 +0200
commit444e21ab15efb02d9e973b7279164beb4b2c08e7 (patch)
treefc2e0e6afadbf255b7843c1370405ea50e0dbbd7 /lib
parentb59d58fdc1a833923620e40dd5f1f5a921e38106 (diff)
downloadnextcloud-server-444e21ab15efb02d9e973b7279164beb4b2c08e7.tar.gz
nextcloud-server-444e21ab15efb02d9e973b7279164beb4b2c08e7.zip
Typ in whichOpenOffice test
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preview/office.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/office.php b/lib/private/preview/office.php
index 16e395cb1a8..b47cbc6e08f 100644
--- a/lib/private/preview/office.php
+++ b/lib/private/preview/office.php
@@ -17,7 +17,7 @@ if (extension_loaded('imagick')) {
if (!\OC_Util::runningOnWindows()) {
$whichLibreOffice = ($isShellExecEnabled ? shell_exec('command -v libreoffice') : '');
$isLibreOfficeAvailable = !empty($whichLibreOffice);
- $whichOpenOffice = ($isShellExecEnabled ? shell_exec('command -v libreoffice') : '');
+ $whichOpenOffice = ($isShellExecEnabled ? shell_exec('command -v openoffice') : '');
$isOpenOfficeAvailable = !empty($whichOpenOffice);
//let's see if there is libreoffice or openoffice on this machine
if($isShellExecEnabled && ($isLibreOfficeAvailable || $isOpenOfficeAvailable || is_string(\OC_Config::getValue('preview_libreoffice_path', null)))) {