diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-02-12 16:11:41 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-02-12 16:11:41 +0100 |
commit | 623afb69b6a51d57ca99d1d825b6c433a93baa96 (patch) | |
tree | e6990f47200de183680e58df4c288dd11e151951 /apps/contacts/ajax/deleteproperty.php | |
parent | 39f342d595136ae6edace17870d14e32c7466cbd (diff) | |
download | nextcloud-server-623afb69b6a51d57ca99d1d825b6c433a93baa96.tar.gz nextcloud-server-623afb69b6a51d57ca99d1d825b6c433a93baa96.zip |
Contacts: cleanup OC_L10N usage
Diffstat (limited to 'apps/contacts/ajax/deleteproperty.php')
-rw-r--r-- | apps/contacts/ajax/deleteproperty.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/contacts/ajax/deleteproperty.php b/apps/contacts/ajax/deleteproperty.php index d745d3271db..a9afffaad4c 100644 --- a/apps/contacts/ajax/deleteproperty.php +++ b/apps/contacts/ajax/deleteproperty.php @@ -26,7 +26,6 @@ require_once('../../../lib/base.php'); // Check if we are a user OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('contacts'); -$l10n = new OC_L10N('contacts'); $id = $_GET['id']; $checksum = $_GET['checksum']; @@ -34,15 +33,14 @@ $checksum = $_GET['checksum']; $vcard = OC_Contacts_App::getContactVCard( $id ); $line = OC_Contacts_App::getPropertyLineByChecksum($vcard, $checksum); if(is_null($line)){ - $l=new OC_L10N('contacts'); - OC_JSON::error(array('data' => array( 'message' => $l->t('Information about vCard is incorrect. Please reload the page.')))); + OC_JSON::error(array('data' => array( 'message' => OC_Contacts_App::$l10n->t('Information about vCard is incorrect. Please reload the page.')))); exit(); } unset($vcard->children[$line]); if(!OC_Contacts_VCard::edit($id,$vcard->serialize())) { - OC_JSON::error(array('data' => array('message' => $l->t('Error deleting contact property.')))); + OC_JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error deleting contact property.')))); OC_Log::write('contacts','ajax/deleteproperty.php: Error deleting contact property', OC_Log::ERROR); exit(); } |