aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
index eb75585c4..534cb93f7 100644
--- a/index.php
+++ b/index.php
@@ -110,6 +110,9 @@ if(! x($_SESSION,'authenticated'))
if(! x($_SESSION,'sysmsg'))
$_SESSION['sysmsg'] = '';
+if(! x($_SESSION,'sysmsg_info'))
+ $_SESSION['sysmsg_info'] = '';
+
/*
* check_config() is responsible for running update scripts. These automatically
* update the DB schema whenever we push a new one out. It also checks to see if
@@ -262,8 +265,16 @@ if(stristr($_SESSION['sysmsg'], t('Permission denied'))) {
if(x($_SESSION,'sysmsg')) {
$a->page['content'] = "<div id=\"sysmsg\" class=\"error-message\">{$_SESSION['sysmsg']}</div>\r\n"
. ((x($a->page,'content')) ? $a->page['content'] : '');
+ $_SESSION['sysmsg']="";
unset($_SESSION['sysmsg']);
}
+if(x($_SESSION,'sysmsg_info')) {
+ $a->page['content'] = "<div id=\"sysmsg_info\" class=\"info-message\">{$_SESSION['sysmsg_info']}</div>\r\n"
+ . ((x($a->page,'content')) ? $a->page['content'] : '');
+ $_SESSION['sysmsg_info']="";
+ unset($_SESSION['sysmsg_info']);
+}
+
call_hooks('page_end', $a->page['content']);