diff --git a/pandora_console/include/functions_update_manager.php b/pandora_console/include/functions_update_manager.php index 4bb67ca725..2c130f799a 100755 --- a/pandora_console/include/functions_update_manager.php +++ b/pandora_console/include/functions_update_manager.php @@ -527,7 +527,8 @@ function update_manager_download_messages () { global $config; //Do not ask in next 2 hours - config_update_value ('last_um_check', time() + 2 * SECONDS_1HOUR); + $future = time() + 2 * SECONDS_1HOUR; + config_update_value ('last_um_check', $future); if (!isset ($config['pandora_uid'])) return; // Delete old messages @@ -536,7 +537,8 @@ function update_manager_download_messages () { // Build the curl request $params = array( 'pandora_uid' => $config['pandora_uid'], - 'timezone' => $config['timezone'] + 'timezone' => $config['timezone'], + 'language' => $config['language'] ); $result = update_manager_curl_request ('get_messages', $params); diff --git a/pandora_console/index.php b/pandora_console/index.php index 75fa531149..f4775520f8 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -537,7 +537,7 @@ extensions_load_extensions ($process_login); // Check for update manager messages if (license_free() && is_user_admin ($config['id_user']) && - (($config['last_um_check'] > (time() + 2 * SECONDS_1HOUR)) || + (($config['last_um_check'] < time()) || (!isset($config['last_um_check'])))) { require_once("include/functions_update_manager.php");