diff options
Diffstat (limited to 'lib/private/preview/office.php')
-rw-r--r-- | lib/private/preview/office.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/preview/office.php b/lib/private/preview/office.php index 415220ed4af..acf3683def0 100644 --- a/lib/private/preview/office.php +++ b/lib/private/preview/office.php @@ -79,8 +79,9 @@ abstract class Office extends Provider { private function initCmd() { $cmd = ''; - if (is_string(\OC_Config::getValue('preview_libreoffice_path', null))) { - $cmd = \OC_Config::getValue('preview_libreoffice_path', null); + $libreOfficePath = \OC::$server->getConfig()->getSystemValue('preview_libreoffice_path', null); + if (is_string($libreOfficePath)) { + $cmd = $libreOfficePath; } $whichLibreOffice = shell_exec('command -v libreoffice'); |