equal
deleted
inserted
replaced
600 $na++; |
600 $na++; |
601 } |
601 } |
602 } |
602 } |
603 |
603 |
604 $db->free_result(); |
604 $db->free_result(); |
605 $n = ( $perms->get_permissions('mod_comments') ) ? (string)$nc : (string)$na; |
605 $n = ( $session->check_acl_scope('mod_comments', $local_namespace) && $perms->get_permissions('mod_comments') ) ? (string)$nc : (string)$na; |
606 if ( $perms->get_permissions('mod_comments') && $nu > 0 ) |
606 if ( $session->check_acl_scope('mod_comments', $local_namespace) && $perms->get_permissions('mod_comments') && $nu > 0 ) |
607 { |
607 { |
608 $subst = array( |
608 $subst = array( |
609 'num_comments' => $nc, |
609 'num_comments' => $nc, |
610 'num_unapp' => $nu |
610 'num_unapp' => $nu |
611 ); |
611 ); |