]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Revert "Move Objects to Model"
[friendica.git] / mod / allfriends.php
index 1456661253ff25bfb44f2e94e45fb2f0474a618a..3cfe6c0f9efaa164cea1710ad55d02f438bade50 100644 (file)
@@ -5,8 +5,8 @@
 use Friendica\App;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
-use Friendica\Model\Contact;
-use Friendica\Model\GContact;
+use Friendica\Model\GlobalContact;
+use Friendica\Object\Contact;
 
 require_once 'include/contact_selectors.php';
 require_once 'mod/contacts.php';
@@ -41,12 +41,12 @@ function allfriends_content(App $a) {
        $a->page['aside'] = "";
        profile_load($a, "", 0, Contact::getDetailsByURL($c[0]["url"]));
 
-       $total = GContact::countAllFriends(local_user(), $cid);
+       $total = GlobalContact::countAllFriends(local_user(), $cid);
 
        if(count($total))
                $a->set_pager_total($total);
 
-       $r = GContact::allFriends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']);
+       $r = GlobalContact::allFriends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']);
 
        if (! DBM::is_result($r)) {
                $o .= t('No friends to display.');