Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

@@ -258,17 +258,24 @@ class register extends Controller
$steps[ $key ] = $form;
}
}
/* This happens when the user has already completed the step.
We need to use a dummy function, or the wizard gets thrown out of whack. */
if( !array_key_exists( $step->key, $steps ) )
{
$steps[ $step->key ] = function( $data )
{
return $data;
};
}
}
}
/* If we have more than one step, add a redirect step at the end */
if( count( $steps ) > 1 )
/* The redirect is always the last step */
$steps['profile_done'] = function( $data ) use( $postBeforeRegister )
{
$steps['profile_done'] = function( $data ) use( $postBeforeRegister )
{
$this->_performRedirect( $postBeforeRegister );
};
}
$this->_performRedirect( $postBeforeRegister );
};
/* Output */
Output::i()->title = Member::loggedIn()->language()->addToStack('registration');