From 8fb1f3ce4c085edcdda131b3022fb9cba38144db Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 6 Dec 2005 19:57:42 +0000 Subject: [PATCH] bug #1374753, Language change on login panel not propagated --- ChangeLog | 2 ++ libraries/auth/cookie.auth.lib.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6e22a3ef3..b780d75ee 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ $Source$ 2005-12-06 Marc Delisle * libraries/common.lib.php: bug #1374236, sorting order + * libraries/auth/cookie.auth.lib.php: bug #1374753, Language change on + login panel not propagated 2005-12-06 Michal Čihař * libraries/config.default.php: Modify default export configuration (RFE diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index bed780734..19298eb6b 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -476,6 +476,10 @@ function PMA_auth_set_user() if ( ! empty($GLOBALS['table']) ) { $url_params['table'] = $GLOBALS['table']; } + // Language change from the login panel needs to be remembered + if ( ! empty($GLOBALS['lang']) ) { + $url_params['lang'] = $GLOBALS['lang']; + } // any target to pass? if ( ! empty($GLOBALS['target']) && $GLOBALS['target'] != 'index.php' ) { $url_params['target'] = $GLOBALS['target'];