Hotfix flash message

maybe other issues not sure
This commit is contained in:
William Crandell 2015-10-26 09:10:32 -04:00
parent 6fb43eab19
commit 4af1199ff3

View File

@ -95,11 +95,10 @@ class Layout {
} }
*/ */
$flash = get_prefixed_cookie("flash_message"); $flash = $page->get_cookie("flash_message");
$flash_html = ""; $flash_html = "";
if($flash) { if($flash) {
$flash_html = "<b id='flash'>".nl2br(html_escape($flash))." <a href='#' onclick=\"\$('#flash').hide(); return false;\">[X]</a></b>"; $flash_html = "<b id='flash'>".nl2br(html_escape($flash))." <a href='#' onclick=\"\$('#flash').hide(); return false;\">[X]</a></b>";
set_prefixed_cookie("flash_message", "", -1, "/");
} }
print <<<EOD print <<<EOD