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

View File

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