aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/regmod.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/regmod.php b/mod/regmod.php
index 49a719493..932b109eb 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 .= '<br /><br />' . login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);