From 22c8ed0ada3f06b04ae830b090acd77a33921703 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 22 Jun 2009 07:34:49 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1754 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_config.php | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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"]));