diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 11:39:57 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 11:39:57 +0200 |
commit | e1107b55c6715d131ca808890ce51c6301e56ccc (patch) | |
tree | fe082a84a1b20b68141e3b1ffdac697051ae73b6 /mod/message.php | |
parent | 3ea145fae7defaf959b04797afc8482bd0190352 (diff) | |
download | volse-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/message.php')
-rw-r--r-- | mod/message.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/message.php b/mod/message.php index c9ff3bb8e..21f7b935e 100644 --- a/mod/message.php +++ b/mod/message.php @@ -99,7 +99,7 @@ function message_post(&$a) { if($post_id) { proc_run('php',"include/notifier.php","mail","$post_id"); - notice( t('Message sent.') . EOL ); + info( t('Message sent.') . EOL ); } else { notice( t('Message could not be sent.') . EOL ); @@ -139,7 +139,7 @@ function message_content(&$a) { intval(local_user()) ); if($r) { - notice( t('Message deleted.') . EOL ); + info( t('Message deleted.') . EOL ); } goaway($a->get_baseurl() . '/message' ); } @@ -155,7 +155,7 @@ function message_content(&$a) { intval(local_user()) ); if($r) - notice( t('Conversation removed.') . EOL ); + info( t('Conversation removed.') . EOL ); } goaway($a->get_baseurl() . '/message' ); } @@ -221,7 +221,7 @@ function message_content(&$a) { intval($a->pager['itemspage']) ); if(! count($r)) { - notice( t('No messages.') . EOL); + info( t('No messages.') . EOL); return $o; } @@ -328,4 +328,4 @@ function message_content(&$a) { return $o; } -}
\ No newline at end of file +} |