use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
+use Friendica\DI;
function friends_widget_name()
{
</style>";
$o .= _abs_url(HTML::contactBlock());
- $o .= "<a href='".$a->getBaseURL().'/profile/'.$a->profile['nickname']."'>". L10n::t('Connect on Friendica!') ."</a>";
+ $o .= "<a href='".DI::baseUrl()->get().'/profile/'.$a->profile['nickname']."'>". L10n::t('Connect on Friendica!') ."</a>";
return $o;
}