From bef63527cef4c642e141793eea1a1e9eab39cd30 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 3 Aug 2012 04:20:14 +0200 Subject: Reorganize ajax scripts. --- apps/contacts/ajax/deletecard.php | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 apps/contacts/ajax/deletecard.php (limited to 'apps/contacts/ajax/deletecard.php') diff --git a/apps/contacts/ajax/deletecard.php b/apps/contacts/ajax/deletecard.php deleted file mode 100644 index 9777046fc82..00000000000 --- a/apps/contacts/ajax/deletecard.php +++ /dev/null @@ -1,35 +0,0 @@ -. - * - */ -// Check if we are a user -OCP\JSON::checkLoggedIn(); -OCP\JSON::checkAppEnabled('contacts'); -OCP\JSON::callCheck(); -require_once 'loghandler.php'; - -$id = isset($_POST['id'])?$_POST['id']:null; -if(!$id) { - bailOut(OC_Contacts_App::$l10n->t('id is not set.')); -} -$card = OC_Contacts_App::getContactObject( $id ); - -OC_Contacts_VCard::delete($id); -OCP\JSON::success(array('data' => array( 'id' => $id ))); -- cgit v1.2.3