]> git.mxchange.org Git - friendica.git/commitdiff
ensure regmod redirects to itself after login
authorMike Macgirvin <mike@macgirvin.com>
Sat, 9 Oct 2010 13:00:07 +0000 (06:00 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Sat, 9 Oct 2010 13:00:07 +0000 (06:00 -0700)
mod/regmod.php

index 49a7194934d3b5502a2c5acb939e895c51e26017..932b109ebca32ea0762b0ddc3477044106e96fb3 100644 (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);