mirror of
https://github.com/friendica/friendica
synced 2025-04-20 16:30:12 +00:00
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get()
This commit is contained in:
parent
e57a87f224
commit
e944d7bed6
43 changed files with 76 additions and 120 deletions
|
@ -97,8 +97,6 @@ class BaseSearchModule extends BaseModule
|
|||
return '';
|
||||
}
|
||||
|
||||
$a = DI::app();
|
||||
|
||||
$id = 0;
|
||||
$entries = [];
|
||||
foreach ($results->getResults() as $result) {
|
||||
|
@ -131,7 +129,7 @@ class BaseSearchModule extends BaseModule
|
|||
$photo_menu = [];
|
||||
}
|
||||
} else {
|
||||
$connLink = $a->getBaseURL() . '/follow/?url=' . $result->getUrl();
|
||||
$connLink = DI::baseUrl()->get() . '/follow/?url=' . $result->getUrl();
|
||||
$connTxt = L10n::t('Connect');
|
||||
|
||||
$photo_menu['profile'] = [L10n::t("View Profile"), Model\Contact::magicLink($result->getUrl())];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue