From: Hypolite Petovan Date: Mon, 15 Jul 2019 13:11:21 +0000 (-0400) Subject: Hide registration button on login page when registration are closed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e16c410b59d0688a1f362eed436c0ea0b080de6d;p=friendica.git Hide registration button on login page when registration are closed --- 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')