bug #1374753, Language change on login panel not propagated

This commit is contained in:
Marc Delisle
2005-12-06 19:57:42 +00:00
parent 369c1bf264
commit 8fb1f3ce4c
2 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2005-12-06 Marc Delisle <lem9@users.sourceforge.net> 2005-12-06 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php: bug #1374236, sorting order * 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ř <michal@cihar.com> 2005-12-06 Michal Čihař <michal@cihar.com>
* libraries/config.default.php: Modify default export configuration (RFE * libraries/config.default.php: Modify default export configuration (RFE

View File

@@ -476,6 +476,10 @@ function PMA_auth_set_user()
if ( ! empty($GLOBALS['table']) ) { if ( ! empty($GLOBALS['table']) ) {
$url_params['table'] = $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? // any target to pass?
if ( ! empty($GLOBALS['target']) && $GLOBALS['target'] != 'index.php' ) { if ( ! empty($GLOBALS['target']) && $GLOBALS['target'] != 'index.php' ) {
$url_params['target'] = $GLOBALS['target']; $url_params['target'] = $GLOBALS['target'];