mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
Changed selection of localised images ... new {LANG} replace format
git-svn-id: file:///svn/phpbb/trunk@2019 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
09d99238b6
commit
871bddb685
@ -299,11 +299,11 @@ function init_userprefs($userdata)
|
|||||||
|
|
||||||
while( list($key, $value) = @each($images) )
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user