diff options
author | Mario <mario@mariovavti.com> | 2024-05-08 19:27:48 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-05-08 19:27:48 +0000 |
commit | 960354b16cab06915a2f85fcc5e55d380765d858 (patch) | |
tree | 205fa295040cafbd0aa98ec29d1f5d37306de82a /Zotlabs/Module/Register.php | |
parent | 481e08b904313b768305d82b67f5f8602713b329 (diff) | |
download | volse-hubzilla-960354b16cab06915a2f85fcc5e55d380765d858.tar.gz volse-hubzilla-960354b16cab06915a2f85fcc5e55d380765d858.tar.bz2 volse-hubzilla-960354b16cab06915a2f85fcc5e55d380765d858.zip |
make mod regate return to system.workflow_channel_next and show register message field only if registration is set to register_approve
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r-- | Zotlabs/Module/Register.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index 428b68178..f0163768c 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -429,6 +429,7 @@ class Register extends Controller { function get() { $registration_is = ''; + $register_msg = ''; $other_sites = ''; if(intval(Config::Get('system','register_policy')) === REGISTER_CLOSED) { @@ -442,6 +443,7 @@ class Register extends Controller { } if(intval(Config::Get('system','register_policy')) == REGISTER_APPROVE) { + $register_msg = ['register_msg', t('Why do you want to join this hub?'), ((x($_REQUEST,'register_msg')) ? $_REQUEST['register_msg'] : ''), t('This will help to review your registration')]; $registration_is = t('Registration on this hub is by approval only.'); $other_sites = '<a href="pubsites">' . t('Register at another affiliated hub in case when prefered') . '</a>'; } @@ -512,8 +514,6 @@ class Register extends Controller { $tos = array('tos', $label_tos, ((x($_REQUEST,'tos')) ? $_REQUEST['tos'] : ''), '', [t('No'),t('Yes')], $duty['atform']); - $register_msg = ['register_msg', t('Why do you want to join this hub?'), ((x($_REQUEST,'register_msg')) ? $_REQUEST['register_msg'] : ''), t('This will help to review your registration')]; - require_once('include/bbcode.php'); $o = replace_macros(get_markup_template('register.tpl'), array( |