From: friendica Date: Sat, 25 Feb 2012 12:37:12 +0000 (-0800) Subject: sysnotify count in wrong location, and wrong number X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c90bac57271625d06d92dfb2b7499d0787c55e3c;p=friendica.git sysnotify count in wrong location, and wrong number --- diff --git a/mod/ping.php b/mod/ping.php index c0e61434e9..0f6f0a9d68 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -127,12 +127,20 @@ function ping_init(&$a) { $tot = $mail+$intro+$register+count($comments)+count($likes)+count($dislikes)+count($friends)+count($posts)+count($tags); require_once('include/bbcode.php'); - + $sysnotify = 0; + if($firehose) { echo ' '; } else { - echo ' '; + if(count($z)) { + foreach($z as $zz) { + if($zz['seen'] == 0) + $sysnotify ++; + } + } + + echo ' '; if(count($z)) { foreach($z as $zz) { echo xmlize($a->get_baseurl() . '/notify/view/' . $zz['id'], $zz['name'],$zz['url'],$zz['photo'],relative_date($zz['date']), ($zz['seen'] ? 'notify-seen' : 'notify-unseen'), ($zz['seen'] ? '' : '→ ') .strip_tags(bbcode($zz['msg']))); diff --git a/view/theme/duepuntozero/nav.tpl b/view/theme/duepuntozero/nav.tpl index 7f13bd8347..8fff207558 100755 --- a/view/theme/duepuntozero/nav.tpl +++ b/view/theme/duepuntozero/nav.tpl @@ -46,7 +46,7 @@ {{ if $nav.notifications }}