diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-12-05 21:51:25 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-12-07 20:40:58 +0100 |
commit | 247146f7036984e0ae7a6719e8adfca6c2251079 (patch) | |
tree | 9e3d221d072818ba1935ab6c69074244580be7d5 /apps/contacts/ajax/showaddcard.php | |
parent | c67ac46b6c3b333c7f16cbdc8df7b9a6b4f3fb1b (diff) | |
download | nextcloud-server-247146f7036984e0ae7a6719e8adfca6c2251079.tar.gz nextcloud-server-247146f7036984e0ae7a6719e8adfca6c2251079.zip |
Contacts: refactor rendering of part.details template
Diffstat (limited to 'apps/contacts/ajax/showaddcard.php')
-rw-r--r-- | apps/contacts/ajax/showaddcard.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/contacts/ajax/showaddcard.php b/apps/contacts/ajax/showaddcard.php index 98367758fd4..a2a9398bde5 100644 --- a/apps/contacts/ajax/showaddcard.php +++ b/apps/contacts/ajax/showaddcard.php @@ -23,14 +23,12 @@ // Init owncloud require_once('../../../lib/base.php'); -$l10n = new OC_L10N('contacts'); - // Check if we are a user OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('contacts'); -$adr_types = OC_Contacts_VCard::getTypesOfProperty($l10n, 'ADR'); -$phone_types = OC_Contacts_VCard::getTypesOfProperty($l10n, 'TEL'); +$adr_types = OC_Contacts_App::getTypesOfProperty(OC_Contacts_App::$l10n, 'ADR'); +$phone_types = OC_Contacts_App::getTypesOfProperty(OC_Contacts_App::$l10n, 'TEL'); $addressbooks = OC_Contacts_Addressbook::all(OC_USER::getUser()); $tmpl = new OC_Template('contacts','part.addcardform'); |