From dfd710b59d6ae8869224d98360245af9c5db6745 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 24 Jul 2021 06:21:38 +0000 Subject: [PATCH] Widgets: Replaced deprecated function --- widgets/widget_friendheader.php | 16 ++++++---------- widgets/widget_friends.php | 19 ++++++------------- 2 files changed, 12 insertions(+), 23 deletions(-) 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; }