aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Regate.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-06 11:05:22 +0000
committerMario <mario@mariovavti.com>2024-07-06 11:05:22 +0000
commit45275910e606a02b12393714ea3b0409da440d61 (patch)
tree10b2d173d58cb930f8df28fe75af73dd4974c08c /Zotlabs/Module/Regate.php
parent0c1d0f7498661fb34dcca6f3c6566e757af310a7 (diff)
parentc04e781926a78e514cdf211fa24930a331149072 (diff)
downloadvolse-hubzilla-45275910e606a02b12393714ea3b0409da440d61.tar.gz
volse-hubzilla-45275910e606a02b12393714ea3b0409da440d61.tar.bz2
volse-hubzilla-45275910e606a02b12393714ea3b0409da440d61.zip
Merge branch '9.2RC'master
Diffstat (limited to 'Zotlabs/Module/Regate.php')
-rw-r--r--Zotlabs/Module/Regate.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/Zotlabs/Module/Regate.php b/Zotlabs/Module/Regate.php
index ac6273951..c67f45a88 100644
--- a/Zotlabs/Module/Regate.php
+++ b/Zotlabs/Module/Regate.php
@@ -2,6 +2,7 @@
namespace Zotlabs\Module;
+use Zotlabs\Lib\Config;
use Zotlabs\Lib\Connect;
use Zotlabs\Daemon\Master;
@@ -58,7 +59,7 @@ class Regate extends \Zotlabs\Web\Controller {
// normally, that should never happen here
// log suitable for fail2ban also
$logmsg = 'ZAR1230S Unexpected registration verification request for '
- . get_config('system','sitename') . ' arrived from § ' . $ip . ' §';
+ . Config::Get('system','sitename') . ' arrived from § ' . $ip . ' §';
zar_log($logmsg);
goaway(z_root());
}
@@ -118,7 +119,7 @@ class Regate extends \Zotlabs\Web\Controller {
$isa = ($isa && ($isa['account_roles'] && ACCOUNT_ROLE_ADMIN));
// approve contra invite by admin
- if ($isa && get_config('system','register_policy') == REGISTER_APPROVE) {
+ if ($isa && Config::Get('system','register_policy') == REGISTER_APPROVE) {
$flags &= $flags ^ ACCOUNT_PENDING;
}
@@ -159,7 +160,7 @@ class Regate extends \Zotlabs\Web\Controller {
$nextpage = 'new_channel';
- $auto_create = get_config('system', 'auto_channel_create', 1);
+ $auto_create = Config::Get('system', 'auto_channel_create', 1);
if($auto_create) {
@@ -179,7 +180,7 @@ class Regate extends \Zotlabs\Web\Controller {
if($reonar['chan.did1'])
set_aconfig($cra['account']['account_id'], 'register', 'channel_address', $reonar['chan.did1']);
- $permissions_role = get_config('system','default_permissions_role');
+ $permissions_role = Config::Get('system','default_permissions_role');
if($permissions_role)
set_aconfig($cra['account']['account_id'], 'register', 'permissions_role', $permissions_role);
@@ -206,7 +207,7 @@ class Regate extends \Zotlabs\Web\Controller {
}
change_channel($channel_id);
- $nextpage = 'profiles/' . $channel_id;
+ $nextpage = Config::Get('system', 'workflow_channel_next', 'profiles');
$msg_code = 'ZAR1239I';
$msg = t('Channel successfull created') . ' ' . $did2;
}