From: Mike Macgirvin Date: Sat, 9 Oct 2010 13:00:07 +0000 (-0700) Subject: ensure regmod redirects to itself after login X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=006ca54f92c6e3d9a48cca94da494c6a476b91e0;p=friendica.git ensure regmod redirects to itself after login --- 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);