Skip to content

Commit

Permalink
Use config_get_global for language_auto_map
Browse files Browse the repository at this point in the history
Issue #23626
  • Loading branch information
atrol committed Nov 13, 2017
1 parent 673b483 commit f5618b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lang_api.php
Expand Up @@ -139,7 +139,7 @@ function lang_map_auto() {

if( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) {
$t_accept_langs = explode( ',', $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
$t_auto_map = config_get( 'language_auto_map' );
$t_auto_map = config_get_global( 'language_auto_map' );

# Expand language map
$t_auto_map_exp = array();
Expand Down Expand Up @@ -364,7 +364,7 @@ function lang_get_current_datetime_locale() {
$t_lang = lang_get_current();

# Lookup $g_language_auto_map by value and then return the first key
$t_auto_map = config_get( 'language_auto_map' );
$t_auto_map = config_get_global( 'language_auto_map' );
$t_entry = array_search( $t_lang, $t_auto_map );
$t_key_arr = explode( ',', $t_entry );

Expand Down

0 comments on commit f5618b1

Please sign in to comment.