Remove get_temp_dir()

This commit is contained in:
Robin McCorkell 2015-09-14 17:40:30 +01:00 committed by Lukas Reschke
parent 24d2cbf3de
commit f8619870ea
2 changed files with 1 additions and 9 deletions

View File

@ -1116,14 +1116,6 @@ class OC {
return true;
}
/**
* Get the temporary dir to store uploaded data
* @return null|string Path to the temporary directory or null
*/
function get_temp_dir() {
return \OC::$server->getTempManager()->t_get_temp_dir();
}
}

View File

@ -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);