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

This commit is contained in:
Eric Lippmann 2014-12-30 10:46:08 +01:00
parent df3d7d2034
commit 128f6822f1

View File

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