aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-05 14:01:21 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-05 14:01:21 +0200
commitabd65e00aba5a2581665a689e01fe9330046f001 (patch)
tree67c27d54db34b09cef3667d85198f9a88dda77ba /boot.php
parent14125ce67bb27b024d082738c8065e1bc7f2d377 (diff)
downloadvolse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.tar.gz
volse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.tar.bz2
volse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.zip
Load infos and notices via ping and show them with js popup
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 13e1eff11..c13116012 100644
--- a/boot.php
+++ b/boot.php
@@ -721,14 +721,16 @@ function remote_user() {
if(! function_exists('notice')) {
function notice($s) {
$a = get_app();
+ if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array();
if($a->interactive)
- $_SESSION['sysmsg'] .= $s;
+ $_SESSION['sysmsg'][] = $s;
}}
if(! function_exists('info')) {
function info($s) {
$a = get_app();
+ if(! x($_SESSION,'sysmsg_info')) $_SESSION['sysmsg_info'] = array();
if($a->interactive)
- $_SESSION['sysmsg_info'] .= $s;
+ $_SESSION['sysmsg_info'][] = $s;
}}