diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 12:23:29 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 12:23:29 +0200 |
commit | 43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5 (patch) | |
tree | f4b191f0d039cb7de942554ea23df3fff9de7ad6 /apps/gallery/ajax/sharing.php | |
parent | 375ba986452b190745b9388be92737d7e5771673 (diff) | |
download | nextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.tar.gz nextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.zip |
ported oc_json
Diffstat (limited to 'apps/gallery/ajax/sharing.php')
-rwxr-xr-x | apps/gallery/ajax/sharing.php | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |