summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_versions/download.php')
-rw-r--r--apps/files_versions/download.php4
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();