]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Better content detection for posts to Twitter
[friendica.git] / mod / allfriends.php
index 893cf6a5feda1c2ecf55d3e43123546b2f6e8a54..8d849d37556d8f67e6175c69f461a01ce98021a0 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 require_once('include/socgraph.php');
 require_once('include/Contact.php');
 require_once('include/contact_selectors.php');
@@ -37,9 +40,8 @@ function allfriends_content(App $a) {
 
        $total = count_all_friends(local_user(), $cid);
 
-       if (count($total)) {
+       if(count($total))
                $a->set_pager_total($total);
-       }
 
        $r = all_friends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']);
 
@@ -64,7 +66,7 @@ function allfriends_content(App $a) {
                        $photo_menu = contact_photo_menu ($rr);
                }
                else {
-                       $connlnk = App::get_baseurl() . '/follow/?url=' . $rr['url'];
+                       $connlnk = System::baseUrl() . '/follow/?url=' . $rr['url'];
                        $photo_menu = array(
                                'profile' => array(t("View Profile"), zrl($rr['url'])),
                                'follow' => array(t("Connect/Follow"), $connlnk)