]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Merge pull request #6737 from MrPetovan/bug/6630-fix-empty-label-profile
[friendica.git] / mod / regmod.php
index a772a78ce77e6b4ccdf9f2cc09317572b0defcbc..6cf4c8836c8de48a5c2b617ff625b3253f58ce20 100644 (file)
@@ -15,7 +15,7 @@ use Friendica\Module\Login;
 
 function user_allow($hash)
 {
-       $a = get_app();
+       $a = \get_app();
 
        $register = Register::getByHash($hash);
        if (!DBA::isResult($register)) {
@@ -82,7 +82,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')) === REGISTER_CLOSED ? 0 : 1);
+               return Login::form($a->query_string, intval(Config::get('config', 'register_policy')) === \Friendica\Module\Register::CLOSED ? 0 : 1);
        }
 
        if (!is_site_admin() || !empty($_SESSION['submanage'])) {