aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-23 18:17:02 -0700
committerFriendika <info@friendika.com>2011-05-23 18:17:02 -0700
commit78b2db3a9840f551c951bf0a58a54cce08133bcf (patch)
tree95ed3bd4e52218640d0c13f9691da5a051be5cd8 /index.php
parent3e6180183bdc01edfa01dc4b966daa4081c29604 (diff)
parentdd32a2366c52f7cd234a562c2d9ab7627f162305 (diff)
downloadvolse-hubzilla-78b2db3a9840f551c951bf0a58a54cce08133bcf.tar.gz
volse-hubzilla-78b2db3a9840f551c951bf0a58a54cce08133bcf.tar.bz2
volse-hubzilla-78b2db3a9840f551c951bf0a58a54cce08133bcf.zip
Merge branch 'fabrixxm-master'
Conflicts: boot.php
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']);