diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-14 17:40:30 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-15 11:33:25 +0200 |
commit | f8619870eae323098a47eb880e570f1c6eca37ff (patch) | |
tree | 40409953021c540b2b1b870c765bd99adca199d6 /lib/private/preview | |
parent | 24d2cbf3de49dab44978061b33d0580d24d89d58 (diff) | |
download | nextcloud-server-f8619870eae323098a47eb880e570f1c6eca37ff.tar.gz nextcloud-server-f8619870eae323098a47eb880e570f1c6eca37ff.zip |
Remove get_temp_dir()
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 30398147aa6..ac6b4afa0cc 100644 --- a/lib/private/preview/office.php +++ b/lib/private/preview/office.php @@ -36,7 +36,7 @@ abstract class Office extends Provider { $absPath = $fileview->toTmpFile($path); - $tmpDir = get_temp_dir(); + $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); |