From b94f47f3a93f1d6da0e0ae22e702fa74ec3d655b Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 13 Jan 2016 14:10:49 +0100 Subject: [PATCH] Fixed the refresh time in the enterprise dashboard. TICKET: #3156 --- pandora_console/general/header.php | 13 +------------ pandora_console/include/functions.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index b4b0a5686e..d868827229 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -196,18 +196,7 @@ config_check(); } $ignored_params['refr'] = ''; - $values = array ( - '0' => __('Disable'), - '5' => __('5 seconds'), - '10' => __('10 seconds'), - '15' => __('15 seconds'), - '30' => __('30 seconds'), - (string)SECONDS_1MINUTE => __('1 minute'), - (string)SECONDS_2MINUTES => __('2 minutes'), - (string)SECONDS_5MINUTES => __('5 minutes'), - (string)SECONDS_15MINUTES => __('15 minutes'), - (string)SECONDS_30MINUTES => __('30 minutes'), - (string)SECONDS_1HOUR => __('1 hour')); + $values = get_refresh_time_array(); $autorefresh_additional = ''; diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index da76ed5e91..d7b027bef2 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -2520,4 +2520,19 @@ if (!function_exists('hex2bin')) { } } + +function get_refresh_time_array() { + return array ( + '0' => __('Disable'), + '5' => __('5 seconds'), + '10' => __('10 seconds'), + '15' => __('15 seconds'), + '30' => __('30 seconds'), + (string)SECONDS_1MINUTE => __('1 minute'), + (string)SECONDS_2MINUTES => __('2 minutes'), + (string)SECONDS_5MINUTES => __('5 minutes'), + (string)SECONDS_15MINUTES => __('15 minutes'), + (string)SECONDS_30MINUTES => __('30 minutes'), + (string)SECONDS_1HOUR => __('1 hour')); +} ?>