]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
wrapping up 2019.12
[friendica.git] / mod / regmod.php
index e03f28e85b098175dd65bea15ef4712f27b1326e..295d8df25f5a02066c41d74376f8bdd0941f7bb4 100644 (file)
@@ -44,7 +44,7 @@ function user_allow($hash)
                $user,
                Config::get('config', 'sitename'),
                $a->getBaseUrl(),
-               defaults($register, 'password', 'Sent in a previous email')
+               ($register['password'] ?? '') ?: 'Sent in a previous email'
        );
 
        L10n::popLang();
@@ -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'])) {