From 43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Thu, 3 May 2012 12:23:29 +0200 Subject: ported oc_json --- apps/gallery/ajax/sharing.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/gallery/ajax/sharing.php') diff --git a/apps/gallery/ajax/sharing.php b/apps/gallery/ajax/sharing.php index a1af75ad461..1223320120b 100755 --- a/apps/gallery/ajax/sharing.php +++ b/apps/gallery/ajax/sharing.php @@ -24,7 +24,7 @@ if (!isset($_GET['token']) || !isset($_GET['operation'])) { - OC_JSON::error(array('cause' => 'Not enought arguments')); + OCP\JSON::error(array('cause' => 'Not enought arguments')); exit; } @@ -32,7 +32,7 @@ $operation = $_GET['operation']; $token = $_GET['token']; if (!OC_Gallery_Sharing::isTokenValid($token)) { - OC_JSON::error(array('cause' => 'Given token is not valid')); + OCP\JSON::error(array('cause' => 'Given token is not valid')); exit; } @@ -65,7 +65,7 @@ function handleGetGallery($token, $path) { $photos[] = $row['file_path']; } - OC_JSON::success(array('albums' => $albums, 'photos' => $photos)); + OCP\JSON::success(array('albums' => $albums, 'photos' => $photos)); } function handleGetThumbnail($token, $imgpath) { -- cgit v1.2.3