2010-01-22 Pablo de la Concepción <pablo.concepcion@artica.es>

* 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
This commit is contained in:
Pablo de la Concepción Sanz 2010-01-22 14:26:21 +00:00
parent d3fb4ece02
commit 6b73f0a889
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-01-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* include/functions_config.php: Modified to handle activate_gis
configuration parameter. And establish a default value.
2010-01-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql,

View File

@ -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 ();
}