From baecfc4080214f37708f8c233c0f9b33df7571fd Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 2 Dec 2015 14:49:40 +0100 Subject: Reduce OC_Config usage in lib/ * replaced by proper public interfaces --- lib/private/preview/office.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/private/preview') 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'); -- cgit v1.2.3