aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-16 18:36:29 -0800
committerredmatrix <git@macgirvin.com>2016-02-16 18:36:29 -0800
commitd49afead676f1a5b04daccd5852086e515fcc876 (patch)
tree4ba8b9bab3644741e53321a0e83e9fbc6e56579d /mod
parent0a1021537129bdef5bf16d5a5fdbcae92a84f494 (diff)
downloadvolse-hubzilla-d49afead676f1a5b04daccd5852086e515fcc876.tar.gz
volse-hubzilla-d49afead676f1a5b04daccd5852086e515fcc876.tar.bz2
volse-hubzilla-d49afead676f1a5b04daccd5852086e515fcc876.zip
allow redirection to site workflow page even if auto channel create is applied
Diffstat (limited to 'mod')
-rw-r--r--mod/register.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/register.php b/mod/register.php
index 411d34d64..795de3f57 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -145,6 +145,7 @@ function register_post(&$a) {
authenticate_success($result['account'],true,false,true);
$new_channel = false;
+ $next_page = 'new_channel';
if(get_config('system','auto_channel_create') || UNO) {
$new_channel = auto_channel_create($result['account']['account_id']);
@@ -156,10 +157,10 @@ function register_post(&$a) {
else
$new_channel = false;
}
- if(! $new_channel) {
- if(! strlen($next_page = get_config('system','workflow_register_next')))
- $next_page = 'new_channel';
+ $x = get_config('system','workflow_register_next');
+ if($x) {
+ $next_page = $x;
$_SESSION['workflow'] = true;
}