From 498585d8af0b9c35116d74a6225e17a0c1562ca6 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 3 Aug 2015 10:43:42 +0200 Subject: [PATCH] monitoring: Use createTicketLinks helper when showing a host's history refs #9611 --- .../application/views/scripts/host/history.phtml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/monitoring/application/views/scripts/host/history.phtml b/modules/monitoring/application/views/scripts/host/history.phtml index 36d43ee95..2ad6f428c 100644 --- a/modules/monitoring/application/views/scripts/host/history.phtml +++ b/modules/monitoring/application/views/scripts/host/history.phtml @@ -116,15 +116,7 @@ function contactsLink($match, $view) {
timestamp); ?> - tickets ? preg_replace_callback( - $this->tickets->getPattern(), - array($this->tickets, 'createLink'), - $msg -) : $msg; - -?> + translate('%s on %s', 'Service running on host'), @@ -148,7 +140,7 @@ $output = $this->tickets ? preg_replace_callback(
- icon($icon, $title); ?> + icon($icon, $title); ?> createTicketLinks($msg) ?>