mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 10:34:26 +02:00
Automatically close the registration when the admin is inactive
This commit is contained in:
parent
4834255acf
commit
4b695e361c
18 changed files with 49 additions and 35 deletions
|
@ -66,7 +66,7 @@ class Login extends BaseModule
|
|||
$this->baseUrl->redirect($return_path);
|
||||
}
|
||||
|
||||
return self::form($return_path, intval($this->config->get('config', 'register_policy')) !== \Friendica\Module\Register::CLOSED);
|
||||
return self::form($return_path, \Friendica\Module\Register::getPolicy() !== \Friendica\Module\Register::CLOSED);
|
||||
}
|
||||
|
||||
protected function post(array $request = [])
|
||||
|
@ -118,7 +118,7 @@ class Login extends BaseModule
|
|||
}
|
||||
|
||||
$reg = false;
|
||||
if ($register && intval(DI::config()->get('config', 'register_policy')) !== Register::CLOSED) {
|
||||
if ($register && Register::getPolicy() !== Register::CLOSED) {
|
||||
$reg = [
|
||||
'title' => DI::l10n()->t('Create a New Account'),
|
||||
'desc' => DI::l10n()->t('Register'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue