Added language and fixed last_um_check functionality
This commit is contained in:
parent
7717d633fd
commit
d5cad00655
|
@ -527,7 +527,8 @@ function update_manager_download_messages () {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
//Do not ask in next 2 hours
|
//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;
|
if (!isset ($config['pandora_uid'])) return;
|
||||||
|
|
||||||
// Delete old messages
|
// Delete old messages
|
||||||
|
@ -536,7 +537,8 @@ function update_manager_download_messages () {
|
||||||
// Build the curl request
|
// Build the curl request
|
||||||
$params = array(
|
$params = array(
|
||||||
'pandora_uid' => $config['pandora_uid'],
|
'pandora_uid' => $config['pandora_uid'],
|
||||||
'timezone' => $config['timezone']
|
'timezone' => $config['timezone'],
|
||||||
|
'language' => $config['language']
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = update_manager_curl_request ('get_messages', $params);
|
$result = update_manager_curl_request ('get_messages', $params);
|
||||||
|
|
|
@ -537,7 +537,7 @@ extensions_load_extensions ($process_login);
|
||||||
|
|
||||||
// Check for update manager messages
|
// Check for update manager messages
|
||||||
if (license_free() && is_user_admin ($config['id_user']) &&
|
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'])))) {
|
(!isset($config['last_um_check'])))) {
|
||||||
|
|
||||||
require_once("include/functions_update_manager.php");
|
require_once("include/functions_update_manager.php");
|
||||||
|
|
Loading…
Reference in New Issue