allow redirection to site workflow page even if auto channel create is applied

This commit is contained in:
redmatrix 2016-02-16 18:36:29 -08:00
parent 0a10215371
commit d49afead67

View File

@ -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;
}