diff --git a/widgets/widget_friendheader.php b/widgets/widget_friendheader.php index c4031290..0f414beb 100644 --- a/widgets/widget_friendheader.php +++ b/widgets/widget_friendheader.php @@ -1,7 +1,9 @@ profile = $r[0]; - $o = ""; $o .= ""; - $o .= _abs_url(HTML::contactBlock()); - $o .= "profile['nickname']."' target=new>". DI::l10n()->t('Get added to this list!') .""; + $o .= _abs_url(ContactBlock::getHTML($owner)); + $o .= "". DI::l10n()->t('Get added to this list!') .""; return $o; } diff --git a/widgets/widget_friends.php b/widgets/widget_friends.php index 08b7415c..b04844e0 100644 --- a/widgets/widget_friends.php +++ b/widgets/widget_friends.php @@ -1,8 +1,8 @@ profile = $r[0]; - $o = ""; $o .= ""; - $o .= _abs_url(HTML::contactBlock()); - $o .= "profile['nickname']."'>". DI::l10n()->t('Connect on Friendica!') .""; + $o .= _abs_url(ContactBlock::getHTML($owner)); + $o .= "". DI::l10n()->t('Connect on Friendica!') .""; return $o; }