From 941ff2a98096f73cacbe49bf732a5808b360c5e0 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 20 May 2014 20:39:02 +0000 Subject: [PATCH] monitoring/show: remove CheckSource helper It isn't doing anything but escape, so we can safely skip it. --- .../application/views/helpers/CheckSource.php | 14 -------------- .../scripts/show/components/checksource.phtml | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 modules/monitoring/application/views/helpers/CheckSource.php diff --git a/modules/monitoring/application/views/helpers/CheckSource.php b/modules/monitoring/application/views/helpers/CheckSource.php deleted file mode 100644 index 55efcde56..000000000 --- a/modules/monitoring/application/views/helpers/CheckSource.php +++ /dev/null @@ -1,14 +0,0 @@ -view->escape($source); - } -} diff --git a/modules/monitoring/application/views/scripts/show/components/checksource.phtml b/modules/monitoring/application/views/scripts/show/components/checksource.phtml index a0ea90ca5..921654eeb 100644 --- a/modules/monitoring/application/views/scripts/show/components/checksource.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checksource.phtml @@ -1,7 +1,7 @@ -check_source) return ?> +check_source) || ! $object->check_source) return ?> translate('Check Source') ?> - checkSource($object->check_source) ?> + escape($object->check_source) ?>