monitoring/partials: no double-escape, qlink does so
This commit is contained in:
parent
3d2521abf0
commit
f886172c24
|
@ -1,7 +1,7 @@
|
|||
<span class="comment-header">
|
||||
<?php if ($comment->objecttype === 'service'): ?>
|
||||
<?= $this->icon('service', $this->translate('Service')) ?> <?= $this->qlink(
|
||||
$this->escape($comment->host_display_name) . ': ' . $this->escape($comment->service_display_name),
|
||||
$comment->host_display_name . ': ' . $comment->service_display_name,
|
||||
'monitoring/service/show',
|
||||
array(
|
||||
'host' => $comment->host_name,
|
||||
|
@ -17,7 +17,7 @@
|
|||
) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->icon('host', $this->translate('Host')) ?> <?= $this->qlink(
|
||||
$this->escape($comment->host_display_name),
|
||||
$comment->host_display_name,
|
||||
'monitoring/host/show',
|
||||
array('host' => $comment->host_name),
|
||||
array(
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<span class="comment-header">
|
||||
<?php if ($isService): ?>
|
||||
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
||||
$this->escape($downtime->host_display_name) . ': ' . $this->escape($downtime->service_display_name),
|
||||
$downtime->host_display_name . ': ' . $downtime->service_display_name,
|
||||
'monitoring/service/show',
|
||||
array(
|
||||
'host' => $downtime->host_name,
|
||||
|
@ -27,7 +27,7 @@
|
|||
); ?>
|
||||
<?php else: ?>
|
||||
<?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
|
||||
$this->escape($downtime->host_display_name),
|
||||
$downtime->host_display_name,
|
||||
'monitoring/host/show',
|
||||
array('host' => $downtime->host_name, 'downtime_id' => $downtime->id),
|
||||
array(
|
||||
|
|
Loading…
Reference in New Issue