From bbc2d7cf4f1840bf68d7cd1708d88dcd74dae3d3 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Tue, 2 Sep 2014 22:11:49 +0200 Subject: [PATCH] Typ in whichOpenOffice test --- lib/private/preview/office.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/preview/office.php b/lib/private/preview/office.php index 16e395cb1a..b47cbc6e08 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)))) {