From e1107b55c6715d131ca808890ce51c6301e56ccc Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 23 May 2011 11:39:57 +0200 Subject: 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 --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 66fdc13af..15dca3750 100644 --- a/mod/item.php +++ b/mod/item.php @@ -125,7 +125,7 @@ function item_post(&$a) { $pubmail_enable = ((x($_POST,'pubmail_enable') && intval($_POST['pubmail_enable']) && (! $private)) ? 1 : 0); if(! strlen($body)) { - notice( t('Empty post discarded.') . EOL ); + info( t('Empty post discarded.') . EOL ); if(x($_POST,'return')) goaway($a->get_baseurl() . "/" . $_POST['return'] ); killme(); -- cgit v1.2.3