aboutsummaryrefslogtreecommitdiffstats
path: root/mod/regmod.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-09 06:00:07 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-09 06:00:07 -0700
commit006ca54f92c6e3d9a48cca94da494c6a476b91e0 (patch)
treea46a4f4013c9babfd22bf01ab0780bb16d6c56ac /mod/regmod.php
parent948cb293023b64512ee4220ddc4198769d5eb938 (diff)
downloadvolse-hubzilla-006ca54f92c6e3d9a48cca94da494c6a476b91e0.tar.gz
volse-hubzilla-006ca54f92c6e3d9a48cca94da494c6a476b91e0.tar.bz2
volse-hubzilla-006ca54f92c6e3d9a48cca94da494c6a476b91e0.zip
ensure regmod redirects to itself after login
Diffstat (limited to 'mod/regmod.php')
-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);