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 );