1
0
Fork 0

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

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);