]> git.mxchange.org Git - friendica.git/commitdiff
Hide registration button on login page when registration are closed
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 15 Jul 2019 13:11:21 +0000 (09:11 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 15 Jul 2019 13:11:21 +0000 (09:11 -0400)
src/Module/Login.php

index a8cb838517fa3f0ba635d2915bfbcb634ac6a6e0..966ded57faa3b94ffd6b086eb63f165914b7eb16 100644 (file)
@@ -281,7 +281,7 @@ class Login extends BaseModule
                $a = self::getApp();
                $o = '';
                $reg = false;
-               if ($register) {
+               if ($register && intval($a->getConfig()->get('config', 'register_policy')) !== Register::CLOSED) {
                        $reg = [
                                'title' => L10n::t('Create a New Account'),
                                'desc' => L10n::t('Register')