diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 15:44:25 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 15:44:25 +0100 |
commit | c35a450cb1c0df0f77dea4c69182a381543b679a (patch) | |
tree | dc2b80f46257fbcb35c2e600cb5440dfcefe305d /lib/private/preview | |
parent | 7f8744f576444ff411b3d861effbf0cbe142820e (diff) | |
parent | baecfc4080214f37708f8c233c0f9b33df7571fd (diff) | |
download | nextcloud-server-c35a450cb1c0df0f77dea4c69182a381543b679a.tar.gz nextcloud-server-c35a450cb1c0df0f77dea4c69182a381543b679a.zip |
Merge pull request #20896 from owncloud/reduce-oc_config-usage
Reduce OC_Config usage in lib/
Diffstat (limited to 'lib/private/preview')
-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'); |