summaryrefslogtreecommitdiffstats
path: root/apps/gallery/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gallery/ajax')
-rwxr-xr-xapps/gallery/ajax/galleryOp.php4
-rwxr-xr-xapps/gallery/ajax/sharing.php6
-rwxr-xr-x[-rw-r--r--]apps/gallery/ajax/thumbnail.php2
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();
}