summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-27 13:43:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-27 13:43:18 +0200
commitc27498db7103aebac323c361007e0d8a2da16a34 (patch)
treecfe7bbb7b4abb89936ba9d35a70ef4f50d0c9213 /lib/private/Preview
parent65ade4b6d5a942ff781dad5396387facc86a95ed (diff)
downloadnextcloud-server-c27498db7103aebac323c361007e0d8a2da16a34.tar.gz
nextcloud-server-c27498db7103aebac323c361007e0d8a2da16a34.zip
Use IConfig instead of static OCP\Config
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r--lib/private/Preview/Office.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php
index a05ffef9e9a..322b254e38e 100644
--- a/lib/private/Preview/Office.php
+++ b/lib/private/Preview/Office.php
@@ -42,7 +42,7 @@ abstract class Office extends Provider {
$tmpDir = \OC::$server->getTempManager()->getTempBaseDir();
$defaultParameters = ' -env:UserInstallation=file://' . escapeshellarg($tmpDir . '/owncloud-' . \OC_Util::getInstanceId() . '/') . ' --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir ';
- $clParameters = \OCP\Config::getSystemValue('preview_office_cl_parameters', $defaultParameters);
+ $clParameters = \OC::$server->getConfig()->getSystemValue('preview_office_cl_parameters', $defaultParameters);
$exec = $this->cmd . $clParameters . escapeshellarg($tmpDir) . ' ' . escapeshellarg($absPath);