X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fviewcontacts.php;h=30ae92f8e32e7d2a6a5c530bc380b2109cc56a1b;hb=a5e91175243a41c77a56e73efc3672f20a7e6d23;hp=5912f6cc773f8d398135dcc6072e983e22cffb52;hpb=f9f27c2f5f3ba0fdbe59ac4a4da7570bbe34224e;p=friendica.git diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index 5912f6cc77..30ae92f8e3 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -1,10 +1,15 @@ set_pager_total($r[0]['total']); $r = q("SELECT * FROM `contact` @@ -71,7 +76,7 @@ function viewcontacts_content(App $a) { intval($a->pager['start']), intval($a->pager['itemspage']) ); - if (!dbm::is_result($r)) { + if (!DBM::is_result($r)) { info(t('No contacts.').EOL); return $o; } @@ -95,19 +100,19 @@ function viewcontacts_content(App $a) { else $url = zrl($url); - $contact_details = get_contact_details_by_url($rr['url'], $a->profile['uid'], $rr); + $contact_details = Contact::getDetailsByURL($rr['url'], $a->profile['uid'], $rr); $contacts[] = array( 'id' => $rr['id'], 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']), - 'photo_menu' => contact_photo_menu($rr), + 'photo_menu' => Contact::photoMenu($rr), 'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB), 'name' => htmlentities(substr($contact_details['name'],0,20)), 'username' => htmlentities($contact_details['name']), 'details' => $contact_details['location'], 'tags' => $contact_details['keywords'], 'about' => $contact_details['about'], - 'account_type' => account_type($contact_details), + 'account_type' => Contact::getAccountType($contact_details), 'url' => $url, 'sparkle' => '', 'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),