diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 10:46:27 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 10:46:27 +0200 |
commit | 351740601a81558843a92670ad113a61f6e2f1be (patch) | |
tree | 1fab36790b5cafe288a0c37ddcf517ab6ae07aa1 /apps/gallery/ajax | |
parent | 80dff77b659d843994255509fe2f3204e2b6193e (diff) | |
download | nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.tar.gz nextcloud-server-351740601a81558843a92670ad113a61f6e2f1be.zip |
port oc_response
Diffstat (limited to 'apps/gallery/ajax')
-rwxr-xr-x | apps/gallery/ajax/galleryOp.php | 4 | ||||
-rwxr-xr-x | apps/gallery/ajax/sharing.php | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | apps/gallery/ajax/thumbnail.php | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/gallery/ajax/galleryOp.php b/apps/gallery/ajax/galleryOp.php index 75b18c6f7bf..c302a3a734c 100755 --- a/apps/gallery/ajax/galleryOp.php +++ b/apps/gallery/ajax/galleryOp.php @@ -41,10 +41,10 @@ function handleRemove($name) { } function handleGetThumbnails($albumname) { - OC_Response::enableCaching(3600 * 24); // 24 hour + OCP\Response::enableCaching(3600 * 24); // 24 hour $thumbnail = OC::$CONFIG_DATADIRECTORY.'/../gallery/'.urldecode($albumname).'.png'; header('Content-Type: '.OC_Image::getMimeTypeForFile($thumbnail)); - OC_Response::sendFile($thumbnail); + OCP\Response::sendFile($thumbnail); } function handleGalleryScanning() { diff --git a/apps/gallery/ajax/sharing.php b/apps/gallery/ajax/sharing.php index 04de57eb177..a1af75ad461 100755 --- a/apps/gallery/ajax/sharing.php +++ b/apps/gallery/ajax/sharing.php @@ -72,7 +72,7 @@ function handleGetThumbnail($token, $imgpath) { $owner = OC_Gallery_Sharing::getTokenOwner($token); $image = OC_Gallery_Photo::getThumbnail($imgpath, $owner); if ($image) { - OC_Response::enableCaching(3600 * 24); // 24 hour + OCP\Response::enableCaching(3600 * 24); // 24 hour $image->show(); } } @@ -86,7 +86,7 @@ function handleGetAlbumThumbnail($token, $albumname) $image->centerCrop(); $image->resize(200); $image->fixOrientation(); - OC_Response::enableCaching(3600 * 24); // 24 hour + OCP\Response::enableCaching(3600 * 24); // 24 hour $image->show(); } } @@ -95,7 +95,7 @@ function handleGetPhoto($token, $photo) { $owner = OC_Gallery_Sharing::getTokenOwner($token); $file = OCP\Config::getSystemValue( "datadirectory", OC::$SERVERROOT."/data" ).'/'.$owner.'/files'.urldecode($photo); header('Content-Type: '.OC_Image::getMimeTypeForFile($file)); - OC_Response::sendFile($file); + OCP\Response::sendFile($file); } switch ($operation) { diff --git a/apps/gallery/ajax/thumbnail.php b/apps/gallery/ajax/thumbnail.php index bf42fd2becb..92e9fd4269e 100644..100755 --- a/apps/gallery/ajax/thumbnail.php +++ b/apps/gallery/ajax/thumbnail.php @@ -29,6 +29,6 @@ $img = $_GET['img']; $image = OC_Gallery_Photo::getThumbnail($img); if ($image) { - OC_Response::enableCaching(3600 * 24); // 24 hour + OCP\Response::enableCaching(3600 * 24); // 24 hour $image->show(); } |