diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 09466e0a4f..f9506dafd4 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -299,11 +299,11 @@ function init_userprefs($userdata) while( list($key, $value) = @each($images) ) { - if( strstr($value, "_lang") ) + if( strstr($value, "{LANG}") ) { - $new_value = str_replace("_lang", "_" . $board_config['default_lang'], $value); + $new_value = str_replace("{LANG}", $board_config['default_lang'], $value); - $images[$key] = ( file_exists($new_value) ) ? $new_value : str_replace("_lang", "_english", $value); + $images[$key] = ( file_exists($new_value) ) ? $new_value : str_replace("{LANG}", "english", $value); } }