Home
last modified time | relevance | path

Searched hist:cc58224cff540373081dcde9c64d00efbf0fbddc (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/inc/
H A Dinfoutils.phpcc58224cff540373081dcde9c64d00efbf0fbddc Mon Jan 10 20:54:58 UTC 2011 Michael Hamann <michael@content-space.de> Fix msg() calls when messages have already been printed

This commit fixes two bugs that occurred when msg() was called after
html_msgarea() had already been called.
- the $MSG array is now cleared when it has been printed (otherwise $MSG
has been printed again when another msg() call was done)
- headers_sent() didn't work for me, it always reported false although
html_msgarea() had already been called which might be explainable with
output buffering. This makes msg() now depend on the first call of
html_msgarea() or headers_sent() in order to not to break msg() in
ajax requests etc.

H A Dhtml.phpcc58224cff540373081dcde9c64d00efbf0fbddc Mon Jan 10 20:54:58 UTC 2011 Michael Hamann <michael@content-space.de> Fix msg() calls when messages have already been printed

This commit fixes two bugs that occurred when msg() was called after
html_msgarea() had already been called.
- the $MSG array is now cleared when it has been printed (otherwise $MSG
has been printed again when another msg() call was done)
- headers_sent() didn't work for me, it always reported false although
html_msgarea() had already been called which might be explainable with
output buffering. This makes msg() now depend on the first call of
html_msgarea() or headers_sent() in order to not to break msg() in
ajax requests etc.