ensure regmod redirects to itself after login
This commit is contained in:
parent
948cb29302
commit
006ca54f92
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
function regmod_content(&$a) {
|
function regmod_content(&$a) {
|
||||||
|
|
||||||
|
$_SESSION['return_url'] = $a->cmd;
|
||||||
|
|
||||||
if(! local_user()) {
|
if(! local_user()) {
|
||||||
notice( t('Please login.') . EOL);
|
notice( t('Please login.') . EOL);
|
||||||
$o .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
$o .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
||||||
|
|
Loading…
Reference in a new issue