From 20fd99944b9a319653103b7430b82f1200805095 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 4 Sep 2015 18:09:25 +0200 Subject: [PATCH] monitoring/detail: Add $activeChecksEnabled variable in the checkstatistics view script refs #8378 --- .../views/scripts/show/components/checkstatistics.phtml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml index 7df82b32d..b69e0af0f 100644 --- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -1,9 +1,10 @@ active_checks_enabled; ?> - active_checks_enabled ? $this->translate('Last check') : $this->translate('Last update') ?> + translate('Last check') : $this->translate('Last update') ?> - active_checks_enabled ? $this->translate('Next check') : $this->translate('Next update') ?> + translate('Next check') : $this->translate('Next update') ?> - active_checks_enabled && $this->hasPermission('monitoring/command/schedule-check')) { + hasPermission('monitoring/command/schedule-check')) { if ($object->getType() === $object::TYPE_SERVICE) { echo $this->qlink( $this->translate('Reschedule'), @@ -47,7 +48,7 @@ } } ?> state !== 99) { - if ((bool) $object->active_checks_enabled) { + if ($activeChecksEnabled) { echo $this->timeUntil($object->next_check); } else { echo sprintf($this->translate('expected %s'), $this->timeUntil($object->next_update));