Use constants instead of strings for register_policy

This commit is contained in:
Hypolite Petovan 2018-11-26 07:40:44 -05:00
parent 833c57cc35
commit 0c21bd488f
5 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ return [
'config' => [ 'config' => [
'admin_email' => '', 'admin_email' => '',
'sitename' => 'Friendica Social Network', 'sitename' => 'Friendica Social Network',
'register_policy' => 'REGISTER_OPEN', 'register_policy' => REGISTER_OPEN,
'register_text' => '', 'register_text' => '',
], ],
'system' => [ 'system' => [

View File

@ -19,7 +19,7 @@ return [
// Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
// Be certain to create your own personal account before setting 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_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) // register_text (String)
// Will be displayed prominently on the registration page. // Will be displayed prominently on the registration page.

View File

@ -209,7 +209,7 @@ return [
'config' => [ 'config' => [
'admin_email' => '', 'admin_email' => '',
'sitename' => 'Friendica Social Network', 'sitename' => 'Friendica Social Network',
'register_policy' => 'REGISTER_OPEN', 'register_policy' => REGISTER_OPEN,
'register_text' => '', 'register_text' => '',
], ],
'system' => [ 'system' => [

View File

@ -31,7 +31,7 @@ return [
'config' => [ 'config' => [
'admin_email' => 'admin@friendica.local', 'admin_email' => 'admin@friendica.local',
'sitename' => 'Friendica Social Network', 'sitename' => 'Friendica Social Network',
'register_policy' => 'REGISTER_OPEN', 'register_policy' => REGISTER_OPEN,
'register_text' => '', 'register_text' => '',
], ],
'system' => [ 'system' => [

View File

@ -24,7 +24,7 @@ return [
'php_path' => '{{$phpath}}', 'php_path' => '{{$phpath}}',
'admin_email' => '{{$adminmail}}', 'admin_email' => '{{$adminmail}}',
'sitename' => 'Friendica Social Network', 'sitename' => 'Friendica Social Network',
'register_policy' => 'REGISTER_OPEN', 'register_policy' => REGISTER_OPEN,
'max_import_size' => 200000, 'max_import_size' => 200000,
], ],
'system' => [ 'system' => [