diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-06-13 11:33:12 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-06-13 11:41:52 +0200 |
commit | 0181f02104c2e7068dfe8d66353cf8502e34a379 (patch) | |
tree | 6a3557112bae8da82e084b993f5a948264e2ae39 /inc | |
parent | a0b3ecb91b6aa4b2d0c7302bbfaeb9428621cc2a (diff) | |
download | rpg-0181f02104c2e7068dfe8d66353cf8502e34a379.tar.gz rpg-0181f02104c2e7068dfe8d66353cf8502e34a379.tar.bz2 |
Store undisplayed msg's in session on redirect
Diffstat (limited to 'inc')
-rw-r--r-- | inc/common.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index ec27d8a85..25d743e0b 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1464,6 +1464,14 @@ function is_mem_available($mem,$bytes=1048576){ * @author Andreas Gohr <andi@splitbrain.org> */ function send_redirect($url){ + //are there any undisplayed messages? keep them in session for display + global $MSG; + if (isset($MSG) && count($MSG) && !defined('NOSESSION')){ + //reopen session, store data and close session again + @session_start(); + $_SESSION[DOKU_COOKIE]['msg'] = $MSG; + } + // always close the session session_write_close(); |