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

refs #9611
This commit is contained in:
Eric Lippmann 2015-08-03 10:44:53 +02:00
parent 498585d8af
commit e555e3e3b2
1 changed files with 3 additions and 11 deletions

View File

@ -114,15 +114,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>
<?= sprintf(
$this->translate('%s on %s', 'Service running on host'),
$this->escape($event->service_display_name),
@ -130,11 +122,11 @@ $output = $this->tickets ? preg_replace_callback(
) ?>
<br>
<div>
<?= $this->icon($icon, $title); ?> <?= empty($msg) ? '' : $msg; ?>
<?= $this->icon($icon, $title); ?> <?= $this->createTicketLinks($msg) ?>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>