monitoring/show: remove CheckSource helper

It isn't doing anything but escape, so we can safely skip it.
This commit is contained in:
Thomas Gelf 2014-05-20 20:39:02 +00:00
parent 31fa794440
commit 941ff2a980
2 changed files with 2 additions and 16 deletions

View File

@ -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);
}
}

View File

@ -1,7 +1,7 @@
<?php if (! $object->check_source) return ?>
<?php if (! isset($object->check_source) || ! $object->check_source) return ?>
<tr>
<th><?= $this->translate('Check Source') ?></th>
<td>
<?= $this->checkSource($object->check_source) ?>
<?= $this->escape($object->check_source) ?>
</td>
</tr>