2009-06-22 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2009-06-22 07:34:49 +00:00
parent 73b9fcb97c
commit ddc802778e
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-06-22 Miguel de Dios <miguel.dedios@artica.es>
* 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 <jorgegonz@artica.es>
* AUTHORS: Fixed typo.

View File

@ -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"]));