From: Michael Date: Sat, 24 Jul 2021 06:21:38 +0000 (+0000) Subject: Widgets: Replaced deprecated function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dfd710b59d6ae8869224d98360245af9c5db6745;p=friendica-addons.git Widgets: Replaced deprecated function --- 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; }