]> source.dussan.org Git - nextcloud-server.git/commitdiff
Typ in whichOpenOffice test
authorOlivier Paroz <oparoz@users.noreply.github.com>
Tue, 2 Sep 2014 20:11:49 +0000 (22:11 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 4 Sep 2014 10:54:20 +0000 (12:54 +0200)
lib/private/preview/office.php

index 16e395cb1a815a9f3a7eab6173251d8931fe7faa..b47cbc6e08f18ff1613f718767b81ab58e39e784 100644 (file)
@@ -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)))) {