aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_poll.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-05-23 11:39:57 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-05-23 11:39:57 +0200
commite1107b55c6715d131ca808890ce51c6301e56ccc (patch)
treefe082a84a1b20b68141e3b1ffdac697051ae73b6 /mod/dfrn_poll.php
parent3ea145fae7defaf959b04797afc8482bd0190352 (diff)
downloadvolse-hubzilla-e1107b55c6715d131ca808890ce51c6301e56ccc.tar.gz
volse-hubzilla-e1107b55c6715d131ca808890ce51c6301e56ccc.tar.bz2
volse-hubzilla-e1107b55c6715d131ca808890ce51c6301e56ccc.zip
add info() function. Works like notice() but show messages in a div with class info-message.
update code to use info() instead of notice() when appropriate (non-error message) add info-message class style in themes
Diffstat (limited to 'mod/dfrn_poll.php')
-rw-r--r--mod/dfrn_poll.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php
index 718aa165c..ef8469523 100644
--- a/mod/dfrn_poll.php
+++ b/mod/dfrn_poll.php
@@ -81,7 +81,7 @@ function dfrn_poll_init(&$a) {
$_SESSION['visitor_id'] = $r[0]['id'];
$_SESSION['visitor_home'] = $r[0]['url'];
$_SESSION['visitor_visiting'] = $r[0]['uid'];
- notice( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
+ info( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
// Visitors get 1 day session.
$session_id = session_id();
$expire = time() + 86400;
@@ -507,7 +507,7 @@ function dfrn_poll_content(&$a) {
$_SESSION['visitor_id'] = $r[0]['id'];
$_SESSION['visitor_home'] = $r[0]['url'];
$_SESSION['visitor_visiting'] = $r[0]['uid'];
- notice( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
+ info( sprintf(t('%s welcomes %s'), $r[0]['username'] , $r[0]['name']) . EOL);
// Visitors get 1 day session.
$session_id = session_id();
$expire = time() + 86400;