Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-03 12:46:27 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-03 12:46:27 +0400
commit351740601a81558843a92670ad113a61f6e2f1be (patch)
tree1fab36790b5cafe288a0c37ddcf517ab6ae07aa1 /apps/files_sharing
parent80dff77b659d843994255509fe2f3204e2b6193e (diff)
port oc_response
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-xapps/files_sharing/get.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index a741139b929..b17dc85c5ba 100755
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -68,7 +68,7 @@ if ($source !== false) {
//get time mimetype and set the headers
$mimetype = OC_Filesystem::getMimeType($source);
header("Content-Transfer-Encoding: binary");
- OC_Response::disableCaching();
+ OCP\Response::disableCaching();
header('Content-Disposition: filename="'.basename($source).'"');
header("Content-Type: " . $mimetype);
header("Content-Length: " . OC_Filesystem::filesize($source));