monitoring: Use createTicketLinks helper when showing a host's history

refs #9611
This commit is contained in:
Eric Lippmann 2015-08-03 10:43:42 +02:00
parent 6481e97565
commit 498585d8af
1 changed files with 2 additions and 10 deletions

View File

@ -116,15 +116,7 @@ function contactsLink($match, $view) {
<br>
<?= date('d.m. H:i', $event->timestamp); ?>
</td>
<td><?php
$output = $this->tickets ? preg_replace_callback(
$this->tickets->getPattern(),
array($this->tickets, 'createLink'),
$msg
) : $msg;
?>
<td>
<?php if ($isService): ?>
<?= sprintf(
$this->translate('%s on %s', 'Service running on host'),
@ -148,7 +140,7 @@ $output = $this->tickets ? preg_replace_callback(
<?php endif ?>
<br>
<div>
<?= $this->icon($icon, $title); ?> <?= empty($msg) ? '' : $msg; ?>
<?= $this->icon($icon, $title); ?> <?= $this->createTicketLinks($msg) ?>
</div>
</td>
</tr>