Browse Source

Use constants instead of strings for register_policy

pull/6199/head
Hypolite Petovan 4 years ago
parent
commit
0c21bd488f
  1. 2
      config/local-sample.config.php
  2. 2
      config/settings.config.php
  3. 2
      tests/src/Core/Console/AutomaticInstallationConsoleTest.php
  4. 2
      util/local.config.vagrant.php
  5. 2
      view/templates/local.config.tpl

2
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' => [

2
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.

2
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' => [

2
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' => [

2
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' => [

Loading…
Cancel
Save