Skip to content
Snippets Groups Projects
Commit cb3f9dba authored by Adrian Lang's avatar Adrian Lang
Browse files

Add redirect after successful subscription

darcs-hash:20091130093642-e4919-318eed562f0e7777d342dfbe4c8fc352eee58ddf.gz
parent 7a9add1c
No related branches found
No related tags found
No related merge requests found
......@@ -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';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment