Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-26 19:09:34 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-26 19:12:45 +0300
commit8897dda9abcda72052ce82a6f81399ef218e61a9 (patch)
treefac746cf1afc9dd5e412589bb00b5fd6410ae3dd /lib
parentd93ee482af35a0fbf3fc25e792a6d43abd6f6fd0 (diff)
Remove deprected API usage. Step 1
Diffstat (limited to 'lib')
-rw-r--r--lib/helper.php5
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');