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/network.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/network.php')
-rw-r--r-- | mod/network.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php index 16739b434..f38fb8c21 100644 --- a/mod/network.php +++ b/mod/network.php @@ -61,8 +61,9 @@ function network_content(&$a, $update = 0) { if(! $update) { if(group) { if(($t = group_public_members($group)) && (! get_pconfig(local_user(),'system','nowarn_insecure'))) { - $plural_form = sprintf( tt('%d member', '%d members', $t), $t); - notice( sprintf( t('Warning: This group contains %s from an insecure network.'), $plural_form ) . EOL); + notice( sprintf( tt('Warning: This group contains %s member from an insecure network.', + 'Warning: This group contains %s members from an insecure network.', + $t), $t ) . EOL); notice( t('Private messages to this group are at risk of public disclosure.') . EOL); } } @@ -136,7 +137,7 @@ function network_content(&$a, $update = 0) { } else { $contact_str = ' 0 '; - notice( t('Group is empty')); + info( t('Group is empty')); } $sql_extra = " AND `item`.`parent` IN ( SELECT `parent` FROM `item` WHERE `id` = `parent` AND ( `contact-id` IN ( $contact_str ) OR `allow_gid` REGEXP '<" . intval($group) . ">' )) "; |