X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcontact_widgets.php;h=ce1cdbad55e003b647a0ca75c83e2b8e11a337ef;hb=082ad499c6bceadb2a1bc5127229bd0f86ee3895;hp=4dab6a53e81623de4cedb6c850683322718b69f1;hpb=15542a8690701b403ed7e7bf56d82d1511cfbd63;p=friendica.git diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 4dab6a53e8..ce1cdbad55 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -175,12 +175,17 @@ function common_friends_visitor_widget($profile_uid) { return; if($cid) - $r = common_friends($profile_uid,$cid,5,true); + $r = common_friends($profile_uid,$cid,0,5,true); else - $r = common_friends_zcid($profile_uid,$zcid,5,true); + $r = common_friends_zcid($profile_uid,$zcid,0,5,true); return replace_macros(get_markup_template('remote_friends_common.tpl'), array( - '$desc' => sprintf( tt("%d friend in common", "%d friends in common", $t), $t), + '$desc' => sprintf( tt("%d contact in common", "%d contacts in common", $t), $t), + '$base' => $a->get_baseurl(), + '$uid' => $profile_uid, + '$cid' => (($cid) ? $cid : '0'), + '$linkmore' => (($t > 5) ? 'true' : ''), + '$more' => t('show more'), '$items' => $r ));