diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ff2cf75d1a..64b63ade47 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-01-22 Pablo de la ConcepciĆ³n + + * include/functions_config.php: Modified to handle activate_gis + configuration parameter. And establish a default value. + 2010-01-22 Pablo de la ConcepciĆ³n * pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql, diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 6e17212c36..88f0489631 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -169,6 +169,8 @@ function update_config () { update_config_value ('history_db_step', (string) get_parameter ('history_db_step', $config['history_db_step'])); update_config_value ('history_db_delay', (string) get_parameter ('history_db_delay', $config['history_db_delay'])); + update_config_value ('activate_gis', (bool) get_parameter ('activate_gis', $config['activate_gis'])); + } /** @@ -352,6 +354,10 @@ function process_config () { update_config_value ( 'history_db_delay', 0); } + if (!isset ($config['activate_gis'])) { + update_config_value ( 'activate_gis', 0); + } + /* Finally, check if any value was overwritten in a form */ update_config (); }