mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Update obsolete App::getBaseUrl calls to DI::baseUrl
This commit is contained in:
parent
c03588f0b4
commit
905823ea63
38 changed files with 510 additions and 480 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function newmemberwidget_install()
|
||||
|
@ -40,7 +41,7 @@ function newmemberwidget_network_mod_init ($a, $b)
|
|||
}
|
||||
|
||||
if (Config::get('newmemberwidget','linklocalsupport', false)) {
|
||||
$t .= '<a href="'.$a->getBaseURL().'/profile/'.Config::get('newmemberwidget','localsupport').'" target="_new">'.L10n::t('Local Support Forum').'</a><br />'.EOL;
|
||||
$t .= '<a href="'.DI::baseUrl()->get().'/profile/'.Config::get('newmemberwidget','localsupport').'" target="_new">'.L10n::t('Local Support Forum').'</a><br />'.EOL;
|
||||
}
|
||||
|
||||
$ft = Config::get('newmemberwidget','freetext', '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue