diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-12-06 22:31:04 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-12-07 20:40:59 +0100 |
commit | 7e990a8e5c5bf266bd3fe36cd5bb99e49c6adb1e (patch) | |
tree | 01b639d59265fa14a359409c0617bfe8e65c0090 /apps/contacts/index.php | |
parent | 247146f7036984e0ae7a6719e8adfca6c2251079 (diff) | |
download | nextcloud-server-7e990a8e5c5bf266bd3fe36cd5bb99e49c6adb1e.tar.gz nextcloud-server-7e990a8e5c5bf266bd3fe36cd5bb99e49c6adb1e.zip |
Contacts: refactor common ajax functions to OC_Contacts_App
Diffstat (limited to 'apps/contacts/index.php')
-rw-r--r-- | apps/contacts/index.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/contacts/index.php b/apps/contacts/index.php index 0a847f5a672..e5098bb7a8b 100644 --- a/apps/contacts/index.php +++ b/apps/contacts/index.php @@ -70,13 +70,12 @@ $details = array(); if( !is_null($id) || count($contacts)){ if(is_null($id)) $id = $contacts[0]['id']; - $contact = OC_Contacts_VCard::find($id); - $vcard = OC_VObject::parse($contact['carddata']); + $vcard = OC_Contacts_App::getContactVCard($id); $details = OC_Contacts_VCard::structureContact($vcard); } -$adr_types = OC_Contacts_App::getTypesOfProperty(OC_Contacts_App::$l10n, 'ADR'); -$phone_types = OC_Contacts_App::getTypesOfProperty(OC_Contacts_App::$l10n, 'TEL'); +$adr_types = OC_Contacts_App::getTypesOfProperty('ADR'); +$phone_types = OC_Contacts_App::getTypesOfProperty('TEL'); // Process the template $tmpl = new OC_Template( 'contacts', 'index', 'user' ); |