summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/deletecard.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/ajax/deletecard.php')
-rwxr-xr-xapps/contacts/ajax/deletecard.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/contacts/ajax/deletecard.php b/apps/contacts/ajax/deletecard.php
index 84526e9b13b..46fd8252d47 100755
--- a/apps/contacts/ajax/deletecard.php
+++ b/apps/contacts/ajax/deletecard.php
@@ -20,7 +20,7 @@
*
*/
function bailOut($msg) {
- OC_JSON::error(array('data' => array('message' => $msg)));
+ OCP\JSON::error(array('data' => array('message' => $msg)));
OCP\Util::writeLog('contacts','ajax/saveproperty.php: '.$msg, OCP\Util::DEBUG);
exit();
}
@@ -29,8 +29,8 @@ function bailOut($msg) {
// Check if we are a user
-OC_JSON::checkLoggedIn();
-OC_JSON::checkAppEnabled('contacts');
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('contacts');
$id = isset($_GET['id'])?$_GET['id']:null;
if(!$id) {
@@ -39,4 +39,4 @@ if(!$id) {
$card = OC_Contacts_App::getContactObject( $id );
OC_Contacts_VCard::delete($id);
-OC_JSON::success(array('data' => array( 'id' => $id )));
+OCP\JSON::success(array('data' => array( 'id' => $id )));