]> git.mxchange.org Git - friendica.git/commitdiff
Use constants instead of strings for register_policy
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 26 Nov 2018 12:40:44 +0000 (07:40 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 26 Nov 2018 12:40:44 +0000 (07:40 -0500)
config/local-sample.config.php
config/settings.config.php
tests/src/Core/Console/AutomaticInstallationConsoleTest.php
util/local.config.vagrant.php
view/templates/local.config.tpl

index c9ca85aeec58aeba4d089da74174c6ecf3d4c4dd..4f688edd96ba551ee77e53571795e8939aa0641b 100644 (file)
@@ -34,7 +34,7 @@ return [
        'config' => [\r
                'admin_email' => '',\r
                'sitename' => 'Friendica Social Network',\r
-               'register_policy' => 'REGISTER_OPEN',\r
+               'register_policy' => REGISTER_OPEN,\r
                'register_text' => '',\r
        ],\r
        'system' => [\r
index b818f66bfb255b607564c0a0d98e938ba996da62..274ec7e1ba9c57ad910970f42038a5e4614f607f 100644 (file)
@@ -19,7 +19,7 @@ return [
                // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.\r
                // Be certain to create your own personal account before setting REGISTER_CLOSED.\r
                // 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.\r
-               'register_policy' => 'REGISTER_CLOSED',\r
+               'register_policy' => REGISTER_CLOSED,\r
 \r
                // register_text (String)\r
                // Will be displayed prominently on the registration page.\r
index b70447a547fa95a818722c9ddcb7315b4fa7972c..29a0e907e5cb702104cc91cae04ec42040e28fc5 100644 (file)
@@ -209,7 +209,7 @@ return [
        'config' => [
                'admin_email' => '',
                'sitename' => 'Friendica Social Network',
-               'register_policy' => 'REGISTER_OPEN',
+               'register_policy' => REGISTER_OPEN,
                'register_text' => '',
        ],
        'system' => [
index fcac663c4d06f648cbe34c49aebf16981eb93f49..8eebb679a9db746b9a77c55d47edfe347fc21def 100644 (file)
@@ -31,7 +31,7 @@ return [
        'config' => [\r
                'admin_email' => 'admin@friendica.local',\r
                'sitename' => 'Friendica Social Network',\r
-               'register_policy' => 'REGISTER_OPEN',\r
+               'register_policy' => REGISTER_OPEN,\r
                'register_text' => '',\r
        ],\r
        'system' => [\r
index 5839e8c34368c85575aa6800b7504b8ca2bc65e7..54ff279f3cbb966b96e28e75cc7e584c83230165 100644 (file)
@@ -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' => [