From: Hypolite Petovan Date: Mon, 26 Nov 2018 12:40:44 +0000 (-0500) Subject: Use constants instead of strings for register_policy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0c21bd488fb4ee93e2c446ec302334a37eba3ec9;p=friendica.git Use constants instead of strings for register_policy --- diff --git a/config/local-sample.config.php b/config/local-sample.config.php index c9ca85aeec..4f688edd96 100644 --- a/config/local-sample.config.php +++ b/config/local-sample.config.php @@ -34,7 +34,7 @@ return [ 'config' => [ 'admin_email' => '', 'sitename' => 'Friendica Social Network', - 'register_policy' => 'REGISTER_OPEN', + 'register_policy' => REGISTER_OPEN, 'register_text' => '', ], 'system' => [ diff --git a/config/settings.config.php b/config/settings.config.php index b818f66bfb..274ec7e1ba 100644 --- a/config/settings.config.php +++ b/config/settings.config.php @@ -19,7 +19,7 @@ return [ // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. // Be certain to create your own personal account before setting REGISTER_CLOSED. // REGISTER_APPROVE requires you set system.admin_email to the email address of an already registered person who can authorize and/or approve/deny the request. - 'register_policy' => 'REGISTER_CLOSED', + 'register_policy' => REGISTER_CLOSED, // register_text (String) // Will be displayed prominently on the registration page. diff --git a/tests/src/Core/Console/AutomaticInstallationConsoleTest.php b/tests/src/Core/Console/AutomaticInstallationConsoleTest.php index b70447a547..29a0e907e5 100644 --- a/tests/src/Core/Console/AutomaticInstallationConsoleTest.php +++ b/tests/src/Core/Console/AutomaticInstallationConsoleTest.php @@ -209,7 +209,7 @@ return [ 'config' => [ 'admin_email' => '', 'sitename' => 'Friendica Social Network', - 'register_policy' => 'REGISTER_OPEN', + 'register_policy' => REGISTER_OPEN, 'register_text' => '', ], 'system' => [ diff --git a/util/local.config.vagrant.php b/util/local.config.vagrant.php index fcac663c4d..8eebb679a9 100644 --- a/util/local.config.vagrant.php +++ b/util/local.config.vagrant.php @@ -31,7 +31,7 @@ return [ 'config' => [ 'admin_email' => 'admin@friendica.local', 'sitename' => 'Friendica Social Network', - 'register_policy' => 'REGISTER_OPEN', + 'register_policy' => REGISTER_OPEN, 'register_text' => '', ], 'system' => [ diff --git a/view/templates/local.config.tpl b/view/templates/local.config.tpl index 5839e8c343..54ff279f3c 100644 --- a/view/templates/local.config.tpl +++ b/view/templates/local.config.tpl @@ -24,7 +24,7 @@ return [ 'php_path' => '{{$phpath}}', 'admin_email' => '{{$adminmail}}', 'sitename' => 'Friendica Social Network', - 'register_policy' => 'REGISTER_OPEN', + 'register_policy' => REGISTER_OPEN, 'max_import_size' => 200000, ], 'system' => [