diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9d6d1f37c3..7c9c8f8c33 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-06-22 Miguel de Dios + + * Fix the error introduced by Miguel de Dios in 2009-06-18, The error + was add repeated rows with language_code in DB. + 2009-06-19 Jorge Gonzlaez * AUTHORS: Fixed typo. diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index c1c574433d..dee2ab6bab 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -76,9 +76,8 @@ function update_config () { $style = substr ($style, 0, strlen ($style) - 4); /* Workaround for ugly language and language_code missmatch */ - //$config['language_code'] = (string) get_parameter ('language', $config["language"]); + $config['language_code'] = $config['language']; //Old value for comparation into update_config_value because in php use language but in db is language_code update_config_value ('language_code', (string) get_parameter ('language', $config["language"])); - //$config["language"] = $config['language_code']; $config["language"] = (string) get_parameter ('language', $config["language"]); update_config_value ('remote_config', (string) get_parameter ('remote_config', $config["remote_config"]));