From e16c410b59d0688a1f362eed436c0ea0b080de6d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 15 Jul 2019 09:11:21 -0400 Subject: [PATCH] Hide registration button on login page when registration are closed --- src/Module/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Login.php b/src/Module/Login.php index a8cb838517..966ded57fa 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -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') -- 2.39.5