summaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
authorOlivier Paroz <oparoz@users.noreply.github.com>2014-09-02 22:11:49 +0200
committerVincent Petry <pvince81@owncloud.com>2014-09-04 12:54:20 +0200
commitbbc2d7cf4f1840bf68d7cd1708d88dcd74dae3d3 (patch)
tree164934458b08ab9feb5c3de36932588d8d731ae4 /lib/private/preview
parenta8861c70c8e5876a961f00e49db88843432bf7ba (diff)
downloadnextcloud-server-bbc2d7cf4f1840bf68d7cd1708d88dcd74dae3d3.tar.gz
nextcloud-server-bbc2d7cf4f1840bf68d7cd1708d88dcd74dae3d3.zip
Typ in whichOpenOffice test
Diffstat (limited to 'lib/private/preview')
-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)))) {