diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-07-11 02:32:17 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-07-11 02:33:11 +0200 |
commit | ca8028bd736ef0eae882747c5437cebc5701e561 (patch) | |
tree | 2654095f6c30139f8fa1dbb48062cbd1a06291a2 /apps/gallery/ajax | |
parent | 0b14b4e3e8b184197e6b2ad501d07af0f803c774 (diff) | |
download | nextcloud-server-ca8028bd736ef0eae882747c5437cebc5701e561.tar.gz nextcloud-server-ca8028bd736ef0eae882747c5437cebc5701e561.zip |
small fixes in merge request 104, use OCP\Files::getStorage
Diffstat (limited to 'apps/gallery/ajax')
-rw-r--r-- | apps/gallery/ajax/viewImage.php | 6 |
1 files changed, 2 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. * */ - - 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(); } |