X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcommon.php;h=62a5185fed84c4a00256bab9447fc56c64b530b2;hb=48642a8544ccc52003829985e22cc2aa71711816;hp=7c12dd39bbf0b0c472adc5249a1d7f72a2700b09;hpb=1a170c874368e3ce77eb569702462e54c96239a2;p=friendica.git diff --git a/mod/common.php b/mod/common.php index 7c12dd39bb..62a5185fed 100644 --- a/mod/common.php +++ b/mod/common.php @@ -40,7 +40,7 @@ function common_content(&$a) { $vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array( '$name' => htmlentities($c[0]['name']), '$photo' => $c[0]['photo'], - 'url' => z_root() . '/contacts/' . $cid + 'url' => 'contacts/' . $cid )); if(! x($a->page,'aside')) @@ -76,23 +76,22 @@ function common_content(&$a) { if($cid) - $t = count_common_friends($uid,$cid); + $t = count_common_friends($uid, $cid); else - $t = count_common_friends_zcid($uid,$zcid); + $t = count_common_friends_zcid($uid, $zcid); - - $a->set_pager_total($t); - - if(! $t) { + if(count($t)) + $a->set_pager_total($t); + else { notice( t('No contacts in common.') . EOL); return $o; } if($cid) - $r = common_friends($uid,$cid); + $r = common_friends($uid, $cid, $a->pager['start'], $a->pager['itemspage']); else - $r = common_friends_zcid($uid,$zcid); + $r = common_friends_zcid($uid, $zcid, $a->pager['start'], $a->pager['itemspage']); if(! count($r)) { @@ -140,8 +139,8 @@ function common_content(&$a) { '$title' => $title, '$tab_str' => $tab_str, '$contacts' => $entries, + '$paginate' => paginate($a), )); -// $o .= paginate($a); return $o; }