From ca8028bd736ef0eae882747c5437cebc5701e561 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Wed, 11 Jul 2012 02:32:17 +0200 Subject: small fixes in merge request 104, use OCP\Files::getStorage --- apps/gallery/ajax/viewImage.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/gallery/ajax') diff --git a/apps/gallery/ajax/viewImage.php b/apps/gallery/ajax/viewImage.php index 4f7af1496fc..daf0ab741f0 100644 --- a/apps/gallery/ajax/viewImage.php +++ b/apps/gallery/ajax/viewImage.php @@ -20,8 +20,6 @@ * License along with this library. If not, see . * */ - - OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('gallery'); @@ -29,6 +27,6 @@ $img = $_GET['img']; $image = OC_Gallery_Photo::getViewImage($img); if ($image) { - OCP\Response::enableCaching(3600 * 24); // 24 hour - $image->show(); + OCP\Response::enableCaching(3600 * 24); // 24 hour + $image->show(); } -- cgit v1.2.3