X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fregmod.php;h=49845e873191405bfef373066760ede30061d843;hb=86320317f493d0bf26fac7860d2e0c388633ab0c;hp=e08edfbcc90ff56e9cd20cc3f878ce12fce7eca4;hpb=e944d7bed6b971494bff82396960d280e6a82cca;p=friendica.git diff --git a/mod/regmod.php b/mod/regmod.php index e08edfbcc9..49845e8731 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -6,7 +6,6 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Core\L10n; -use Friendica\Core\System; use Friendica\Core\Worker; use Friendica\Database\DBA; use Friendica\DI; @@ -33,7 +32,7 @@ function user_allow($hash) $profile = DBA::selectFirst('profile', ['net-publish'], ['uid' => $register['uid'], 'is-default' => true]); if (DBA::isResult($profile) && $profile['net-publish'] && Config::get('system', 'directory')) { - $url = System::baseUrl() . '/profile/' . $user['nickname']; + $url = DI::baseUrl() . '/profile/' . $user['nickname']; Worker::add(PRIORITY_LOW, "Directory", $url); } @@ -80,7 +79,7 @@ function regmod_content(App $a) { if (!local_user()) { info(L10n::t('Please login.') . EOL); - return Login::form($a->query_string, intval(Config::get('config', 'register_policy')) === \Friendica\Module\Register::CLOSED ? 0 : 1); + return Login::form(DI::args()->getQueryString(), intval(Config::get('config', 'register_policy')) === \Friendica\Module\Register::CLOSED ? 0 : 1); } if (!is_site_admin() || !empty($_SESSION['submanage'])) {