From 3056fdb91ba8c9cb2902728a8c902a8222516220 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 18 Jun 2009 14:49:25 +0000 Subject: [PATCH] 2009-06-18 Miguel de Dios * include/functions_config.php: Fix save change language in setup. Fixes: #2777463 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1752 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/AUTHORS | 1 + pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_config.php | 7 ++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pandora_console/AUTHORS b/pandora_console/AUTHORS index aab7d5f8ed..01384a60a4 100644 --- a/pandora_console/AUTHORS +++ b/pandora_console/AUTHORS @@ -4,6 +4,7 @@ Jorge Gonzalez Raul Mateos Ramon Novoa Evi Vanoost +Miguel de Dios + + * include/functions_config.php: Fix save change language in setup. + Fixes: #2777463 + 2009-06-10 Esteban Sanchez * operation/events/events.php: Removed all events on select elements. diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 97b3b2e539..c1c574433d 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -76,9 +76,10 @@ 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"]); - update_config_value ('language_code', $config['language_code']); - $config["language"] = $config['language_code']; + //$config['language_code'] = (string) get_parameter ('language', $config["language"]); + 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"])); update_config_value ('block_size', (int) get_parameter ('block_size', $config["block_size"]));