diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-08-26 19:09:34 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-08-26 19:12:45 +0300 |
commit | 8897dda9abcda72052ce82a6f81399ef218e61a9 (patch) | |
tree | fac746cf1afc9dd5e412589bb00b5fd6410ae3dd /lib | |
parent | d93ee482af35a0fbf3fc25e792a6d43abd6f6fd0 (diff) |
Remove deprected API usage. Step 1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php index a351672f..e6ffaee5 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -161,9 +161,10 @@ class Helper { } public static function findOpenOffice(){ + $config = \OC::$server->getConfig(); $cmd = ''; - if (is_string(\OC_Config::getValue('preview_libreoffice_path', null))){ - $cmd = \OC_Config::getValue('preview_libreoffice_path', null); + if (is_string($config->getSystemValue('preview_libreoffice_path', null))){ + $cmd = $config->getSystemValue('preview_libreoffice_path', null); } $whichLibreOffice = shell_exec('which libreoffice'); |