}
DI::page()['aside'] = "";
- Model\Profile::load($app, "", Model\Contact::getDetailsByURL($contact["url"]));
+ Model\Profile::load($app, "", Model\Contact::getByURL($contact["url"], false));
$total = Model\GContact::countAllFriends(local_user(), $cid);
- $pager = new Pager(DI::args()->getQueryString());
+ $pager = new Pager(DI::l10n(), DI::args()->getQueryString());
$friends = Model\GContact::allFriends(local_user(), $cid, $pager->getStart(), $pager->getItemsPerPage());
if (empty($friends)) {
$entries = [];
foreach ($friends as $friend) {
//get further details of the contact
- $contactDetails = Model\Contact::getDetailsByURL($friend['url'], $uid, $friend);
+ $contactDetails = Model\Contact::getByURLForUser($friend['url'], $uid) ?: $friend;
$connlnk = '';
// $friend[cid] is only available for common contacts. So if the contact is a common one, use contact_photo_menu to generate the photoMenu