Remove get_temp_dir()
This commit is contained in:
parent
24d2cbf3de
commit
f8619870ea
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue