From 6b73f0a88965993a3ce150e491ed30bc00f0579e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20de=20la=20Concepci=C3=B3n=20Sanz?= Date: Fri, 22 Jan 2010 14:26:21 +0000 Subject: [PATCH] =?UTF-8?q?2010-01-22=20=20Pablo=20de=20la=20Concepci?= =?UTF-8?q?=C3=B3n=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * include/functions_config.php: Modified to handle activate_gis configuration parameter. And establish a default value. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2300 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_config.php | 6 ++++++ 2 files changed, 11 insertions(+) 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 (); }