diff options
Diffstat (limited to 'inc/common.php')
-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(); |