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/addcontact.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/addcontact.php')
-rw-r--r-- | apps/contacts/ajax/addcontact.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/contacts/ajax/addcontact.php b/apps/contacts/ajax/addcontact.php index 80034327011..5d17631caa4 100644 --- a/apps/contacts/ajax/addcontact.php +++ b/apps/contacts/ajax/addcontact.php @@ -34,7 +34,6 @@ function debug($msg) { // Check if we are a user OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('contacts'); -$l=new OC_L10N('contacts'); foreach ($_POST as $key=>$element) { debug('_POST: '.$key.'=>'.$element); @@ -55,7 +54,7 @@ $vcard->setString('N',$n); $id = OC_Contacts_VCard::add($aid,$vcard->serialize()); if(!$id) { - OC_JSON::error(array('data' => array('message' => $l->t('There was an error adding the contact.')))); + OC_JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('There was an error adding the contact.')))); OC_Log::write('contacts','ajax/addcontact.php: Recieved non-positive ID on adding card: '.$id, OC_Log::ERROR); exit(); } |