aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Register.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-08 12:38:38 +0000
committerMario <mario@mariovavti.com>2021-04-08 12:38:38 +0000
commitcf62e07bec8ffe6b9e5c92d56c13ee3cbe06b5bf (patch)
treef9842fdf61038c023bd6088576f40f893850256c /Zotlabs/Module/Register.php
parentec4526b5f47af05bc0ffe0bb5f997d3d82b14b5a (diff)
downloadvolse-hubzilla-cf62e07bec8ffe6b9e5c92d56c13ee3cbe06b5bf.tar.gz
volse-hubzilla-cf62e07bec8ffe6b9e5c92d56c13ee3cbe06b5bf.tar.bz2
volse-hubzilla-cf62e07bec8ffe6b9e5c92d56c13ee3cbe06b5bf.zip
register: default to auto-create channel and fix auto create channel if register approval is configured
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r--Zotlabs/Module/Register.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php
index 373695c9d..d076d9ccf 100644
--- a/Zotlabs/Module/Register.php
+++ b/Zotlabs/Module/Register.php
@@ -171,11 +171,10 @@ class Register extends Controller {
}
- $policy = intval(get_config('system','register_policy'));
- $invonly = intval(get_config('system','invitation_only'));
- $invalso = intval(get_config('system','invitation_also'));
- $auto_create = (get_config('system','auto_channel_create') ? true : false);
- $auto_create = true;
+ $policy = get_config('system','register_policy');
+ $invonly = get_config('system','invitation_only');
+ $invalso = get_config('system','invitation_also');
+ $auto_create = get_config('system','auto_channel_create', 1);
switch($policy) {
@@ -521,7 +520,7 @@ class Register extends Controller {
$enable_tos = 1 - intval(get_config('system','no_termsofservice'));
- $auto_create = (get_config('system','auto_channel_create') ? true : false);
+ $auto_create = get_config('system', 'auto_channel_create', 1);
$default_role = get_config('system','default_permissions_role');
$email_verify = get_config('system','verify_email');