diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-03-21 14:17:12 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-21 16:53:56 +0100 |
commit | d435061f8e1bd2d9e8f005213a492c96ad2b2361 (patch) | |
tree | e1b927a5959f6691ce16ccee05c953ad84259810 /apps/files_versions | |
parent | c8340ace5c22b3a3cf2132b2efbe91104aab04e9 (diff) | |
download | nextcloud-server-d435061f8e1bd2d9e8f005213a492c96ad2b2361.tar.gz nextcloud-server-d435061f8e1bd2d9e8f005213a492c96ad2b2361.zip |
Remove deprecated and unused OCP\Response
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/download.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php index 833077fbcce..c61e0461028 100644 --- a/apps/files_versions/download.php +++ b/apps/files_versions/download.php @@ -48,11 +48,11 @@ $view = new OC\Files\View('/'); $ftype = \OC::$server->getMimeTypeDetector()->getSecureMimeType($view->getMimeType('/'.$uid.'/files/'.$filename)); header('Content-Type:'.$ftype); -OCP\Response::setContentDispositionHeader(basename($filename), 'attachment'); +\OC_Response::setContentDispositionHeader(basename($filename), 'attachment'); header('Pragma: public');// enable caching in IE header('Expires: 0'); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); -OCP\Response::setContentLengthHeader($view->filesize($versionName)); +\OC_Response::setContentLengthHeader($view->filesize($versionName)); OC_Util::obEnd(); |