diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-27 13:43:18 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-07-27 13:43:18 +0200 |
commit | c27498db7103aebac323c361007e0d8a2da16a34 (patch) | |
tree | cfe7bbb7b4abb89936ba9d35a70ef4f50d0c9213 /lib/private/Preview | |
parent | 65ade4b6d5a942ff781dad5396387facc86a95ed (diff) | |
download | nextcloud-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.php | 2 |
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); |