Merge pull request #7386 from MrPetovan/bug/7293-hide-registration-link

Hide registration button on login page when registration are closed
2022.09-rc
Michael Vogel 2019-07-16 05:38:12 +02:00 zatwierdzone przez GitHub
commit bb83f23e26
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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')