mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
monitoring/show: remove CheckSource helper
It isn't doing anything but escape, so we can safely skip it.
This commit is contained in:
parent
31fa794440
commit
941ff2a980
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
class Zend_View_Helper_CheckSource extends Zend_View_Helper_Abstract
|
|
||||||
{
|
|
||||||
protected static $purifier;
|
|
||||||
|
|
||||||
public function checkSource($source)
|
|
||||||
{
|
|
||||||
if (empty($source)) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
return $this->view->escape($source);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
<?php if (! $object->check_source) return ?>
|
<?php if (! isset($object->check_source) || ! $object->check_source) return ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?= $this->translate('Check Source') ?></th>
|
<th><?= $this->translate('Check Source') ?></th>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->checkSource($object->check_source) ?>
|
<?= $this->escape($object->check_source) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user