summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2009-11-30 10:36:42 +0100
committerAdrian Lang <lang@cosmocode.de>2010-01-20 10:53:24 +0100
commitcb3f9dbab0cf12b2a7486cca0de17c47399633f3 (patch)
tree965fc432e1094d6908ea3207c5dbfa0423696e85 /inc/actions.php
parent7a9add1ccb1aed5ec92ee48b26ef14bebcf76f03 (diff)
downloadrpg-cb3f9dbab0cf12b2a7486cca0de17c47399633f3.tar.gz
rpg-cb3f9dbab0cf12b2a7486cca0de17c47399633f3.tar.bz2
Add redirect after successful subscription
darcs-hash:20091130093642-e4919-318eed562f0e7777d342dfbe4c8fc352eee58ddf.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/actions.php b/inc/actions.php
index e61b1add3..900409a90 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -589,10 +589,14 @@ function act_subscription($act){
hsc($INFO['userinfo']['name']),
prettyprint_id($target)));
}
- $INFO['subscribed'] = get_info_subscribed();
msg(sprintf($lang["subscr_{$action}_success"], hsc($INFO['userinfo']['name']),
prettyprint_id($target)), 1);
- return $act;
+ global $ID;
+ act_redirect($ID, $act);
+
+ // Assure that we have valid data if act_redirect somehow fails.
+ $INFO['subscribed'] = get_info_subscribed();
+ return 'show';
}
/**