aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-02 15:44:25 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-02 15:44:25 +0100
commitc35a450cb1c0df0f77dea4c69182a381543b679a (patch)
treedc2b80f46257fbcb35c2e600cb5440dfcefe305d /lib/private/preview
parent7f8744f576444ff411b3d861effbf0cbe142820e (diff)
parentbaecfc4080214f37708f8c233c0f9b33df7571fd (diff)
downloadnextcloud-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.php5
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');