summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/showaddcard.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-12-05 21:51:25 +0100
committerBart Visscher <bartv@thisnet.nl>2011-12-07 20:40:58 +0100
commit247146f7036984e0ae7a6719e8adfca6c2251079 (patch)
tree9e3d221d072818ba1935ab6c69074244580be7d5 /apps/contacts/ajax/showaddcard.php
parentc67ac46b6c3b333c7f16cbdc8df7b9a6b4f3fb1b (diff)
downloadnextcloud-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.php6
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');