]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/AllFriends.php
EOL removed
[friendica.git] / src / Module / AllFriends.php
index f916c167101d532fb00a200dd4224f3a4f2c06de..0a95256172220c83a86a6b4e0faf2100661bd22f 100644 (file)
@@ -63,11 +63,11 @@ class AllFriends extends BaseModule
                }
 
                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)) {
@@ -79,7 +79,7 @@ class AllFriends extends BaseModule
                $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