From af0bac511137142f018e9b0625f03bd9d7ca87c3 Mon Sep 17 00:00:00 2001 From: Julian Fitzell Date: Mon, 24 Feb 2003 10:11:06 +0000 Subject: [PATCH] * core/lang_api.php (lang_load_default): oops, not sure what I was thinking... string_cookie is the user string cookie not the language git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2013 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- core/lang_api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lang_api.php b/core/lang_api.php index 3076d7182e..621b734dcc 100644 --- a/core/lang_api.php +++ b/core/lang_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: lang_api.php,v 1.13 2003-02-24 09:52:05 jfitzell Exp $ + # $Id: lang_api.php,v 1.14 2003-02-24 10:11:06 jfitzell Exp $ # -------------------------------------------------------- ########################################################################### @@ -57,17 +57,17 @@ function lang_load( $p_lang ) { # ------------------ # Loads the user's language or, if the database is unavailable, the default language function lang_load_default() { - $t_user_language = gpc_get_cookie( config_get( 'string_cookie' ) ); + $t_cookie_string = gpc_get_cookie( config_get( 'string_cookie' ) ); # Confirm that the user's language can be determined - if ( db_is_connected() && !is_blank( $t_user_language ) ) { + if ( db_is_connected() && !is_blank( $t_cookie_string ) ) { $t_mantis_user_pref_table = config_get( 'mantis_user_pref_table' ); $t_mantis_user_table = config_get( 'mantis_user_table' ); $query = "SELECT DISTINCT language FROM $t_mantis_user_pref_table p, $t_mantis_user_table u - WHERE u.cookie_string='$t_user_language' AND + WHERE u.cookie_string='$t_cookie_string' AND u.id=p.user_id"; $result = db_query( $query );