summaryrefslogtreecommitdiffstats
path: root/apps/contacts/index.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-12 22:31:28 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-12 23:10:49 +0200
commitfa853102e41ec4308af024bc0fce48a1a9ef7274 (patch)
tree7c6b59d365830586761551f7aa15fa59a2924d39 /apps/contacts/index.php
parentbc81179163642098ee27cf43aff25c4c68f3e12c (diff)
downloadnextcloud-server-fa853102e41ec4308af024bc0fce48a1a9ef7274.tar.gz
nextcloud-server-fa853102e41ec4308af024bc0fce48a1a9ef7274.zip
Contacts: Move use of OC_Contacts_App::$categories to inside of OC_Contacts_App
This is in preparation of making $categories protected and initialized with default categories.
Diffstat (limited to 'apps/contacts/index.php')
-rw-r--r--apps/contacts/index.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/contacts/index.php b/apps/contacts/index.php
index 776c57ca605..97117c329b2 100644
--- a/apps/contacts/index.php
+++ b/apps/contacts/index.php
@@ -35,25 +35,6 @@ if(!is_null($id)) {
$property_types = OC_Contacts_App::getAddPropertyOptions();
$phone_types = OC_Contacts_App::getTypesOfProperty('TEL');
$categories = OC_Contacts_App::getCategories();
-if(count($categories) == 0) {
- $vcaddressbooks = OC_Contacts_Addressbook::all(OC_User::getUser());
- if(count($vcaddressbooks) > 0) {
- $vcaddressbookids = array();
- foreach($vcaddressbooks as $vcaddressbook) {
- $vcaddressbookids[] = $vcaddressbook['id'];
- }
- $vccontacts = OC_Contacts_VCard::all($vcaddressbookids);
- if(count($vccontacts) > 0) {
- $cards = array();
- foreach($vccontacts as $vccontact) {
- $cards[] = $vccontact['carddata'];
- }
-
- OC_Contacts_App::$categories->rescan($cards);
- $categories = OC_Contacts_App::$categories->categories();
- }
- }
-}
$upload_max_filesize = OC_Helper::computerFileSize(ini_get('upload_max_filesize'));
$post_max_size = OC_Helper::computerFileSize(ini_get('post_max_size'));