From 006ca54f92c6e3d9a48cca94da494c6a476b91e0 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 9 Oct 2010 06:00:07 -0700 Subject: [PATCH] ensure regmod redirects to itself after login --- mod/regmod.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/regmod.php b/mod/regmod.php index 49a7194934..932b109ebc 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -4,6 +4,8 @@ function regmod_content(&$a) { + $_SESSION['return_url'] = $a->cmd; + if(! local_user()) { notice( t('Please login.') . EOL); $o .= '

' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); -- 2.39.5