]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Merge pull request #5862 from nupplaphil/rename_App_Methods
[friendica.git] / mod / allfriends.php
index 32cd23ec6bf0d1469f2dbb43467111a61b2490ea..b41d0c891be7ec7feceb100b80404882f5c7cbe4 100644 (file)
@@ -35,7 +35,7 @@ function allfriends_content(App $a)
 
        $uid = $a->user['uid'];
 
-       $contact = DBA::selectFirst('contact', ['name', 'url', 'photo'], ['id' => $cid, 'uid' => local_user()]);
+       $contact = DBA::selectFirst('contact', ['name', 'url', 'photo', 'uid', 'id'], ['id' => $cid, 'uid' => local_user()]);
 
        if (!DBA::isResult($contact)) {
                return;
@@ -46,7 +46,7 @@ function allfriends_content(App $a)
 
        $total = GContact::countAllFriends(local_user(), $cid);
 
-       $a->set_pager_total($total);
+       $a->setPagerTotal($total);
 
        $r = GContact::allFriends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']);
        if (!DBA::isResult($r)) {
@@ -96,7 +96,7 @@ function allfriends_content(App $a)
                $entries[] = $entry;
        }
 
-       $tab_str = contacts_tab($a, $cid, 3);
+       $tab_str = contacts_tab($a, $contact, 4);
 
        $tpl = get_markup_template('viewcontact_template.tpl');