diff --git a/api/soap/mc_api.php b/api/soap/mc_api.php index 0d96a632a9..5dfe6db42a 100644 --- a/api/soap/mc_api.php +++ b/api/soap/mc_api.php @@ -551,7 +551,7 @@ function mci_related_issue_as_array_by_id( $p_issue_id ) { function mci_get_user_lang( $p_user_id ) { $t_lang = user_pref_get_pref( $p_user_id, 'language' ); if( $t_lang == 'auto' ) { - $t_lang = config_get( 'fallback_language' ); + $t_lang = config_get_global( 'fallback_language' ); } return $t_lang; } diff --git a/core/email_api.php b/core/email_api.php index dbbc8742aa..2e0d239bb4 100644 --- a/core/email_api.php +++ b/core/email_api.php @@ -1261,7 +1261,7 @@ function email_send( EmailData $p_email_data ) { # @@@ should this be the current language (for the recipient) or the default one (for the user running the command) (thraxisp) $t_lang = config_get_global( 'default_language' ); if( 'auto' == $t_lang ) { - $t_lang = config_get( 'fallback_language' ); + $t_lang = config_get_global( 'fallback_language' ); } $t_mail->SetLanguage( lang_get( 'phpmailer_language', $t_lang ) ); diff --git a/core/lang_api.php b/core/lang_api.php index 43f2bd15b2..4e4d298f3b 100644 --- a/core/lang_api.php +++ b/core/lang_api.php @@ -135,7 +135,7 @@ function lang_get_default() { * @return string */ function lang_map_auto() { - $t_lang = config_get( 'fallback_language' ); + $t_lang = config_get_global( 'fallback_language' ); if( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) { $t_accept_langs = explode( ',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); @@ -218,7 +218,7 @@ function lang_push( $p_lang = null ) { # The results from auto are always the local user, not what the # override wants, unless this is the first language setting if( ( 'auto' == $t_lang ) && ( 0 < count( $g_lang_overrides ) ) ) { - $t_lang = config_get( 'fallback_language' ); + $t_lang = config_get_global( 'fallback_language' ); } $g_lang_overrides[] = $t_lang;