monitoring: Count acknowledged hosts once in hosts/show.phtml

This commit is contained in:
Eric Lippmann 2014-12-30 10:31:23 +01:00
parent 507aefa9dd
commit 3745d3ebef
1 changed files with 3 additions and 2 deletions

View File

@ -90,13 +90,14 @@
<?php if (! empty($acknowledgedObjects)): ?>
<h2>
<?php $acknowledgedCount = count($acknowledgedObjects) ?>
<?= sprintf(
$this->translatePlural(
'%u Acknowledged Host Problem',
'%u Acknowledged Host Problems',
count($acknowledgedObjects)
$acknowledgedCount
),
count($acknowledgedObjects)
$acknowledgedCount
) ?>
</h2>
<div>