aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/categories/categoriesfor.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-03 12:23:29 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-03 12:23:29 +0200
commit43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5 (patch)
treef4b191f0d039cb7de942554ea23df3fff9de7ad6 /apps/contacts/ajax/categories/categoriesfor.php
parent375ba986452b190745b9388be92737d7e5771673 (diff)
downloadnextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.tar.gz
nextcloud-server-43caa3b3b9cc9dbbf73ab2f6695a801a07a1dba5.zip
ported oc_json
Diffstat (limited to 'apps/contacts/ajax/categories/categoriesfor.php')
-rwxr-xr-xapps/contacts/ajax/categories/categoriesfor.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/contacts/ajax/categories/categoriesfor.php b/apps/contacts/ajax/categories/categoriesfor.php
index c6b753a73b5..846af300de8 100755
--- a/apps/contacts/ajax/categories/categoriesfor.php
+++ b/apps/contacts/ajax/categories/categoriesfor.php
@@ -7,12 +7,12 @@
*/
-OC_JSON::checkLoggedIn();
-OC_JSON::checkAppEnabled('contacts');
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('contacts');
$id = isset($_GET['id'])?$_GET['id']:null;
if(is_null($id)) {
- OC_JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('No ID provided'))));
+ OCP\JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('No ID provided'))));
exit();
}
$vcard = OC_Contacts_App::getContactVCard( $id );
@@ -20,9 +20,9 @@ foreach($vcard->children as $property){
//OCP\Util::writeLog('contacts','ajax/categories/checksumfor.php: '.$property->name, OCP\Util::DEBUG);
if($property->name == 'CATEGORIES') {
$checksum = md5($property->serialize());
- OC_JSON::success(array('data' => array('value'=>$property->value, 'checksum'=>$checksum)));
+ OCP\JSON::success(array('data' => array('value'=>$property->value, 'checksum'=>$checksum)));
exit();
}
}
-OC_JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error setting checksum.'))));
+OCP\JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error setting checksum.'))));
?>