ensure regmod redirects to itself after login

This commit is contained in:
Mike Macgirvin 2010-10-09 06:00:07 -07:00
parent 948cb29302
commit 006ca54f92
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@
function regmod_content(&$a) {
$_SESSION['return_url'] = $a->cmd;
if(! local_user()) {
notice( t('Please login.') . EOL);
$o .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);