mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
Failed to switch to English images default if prefered language doesn't exist ...
git-svn-id: file:///svn/phpbb/trunk@2212 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -301,12 +301,11 @@ function setup_style($style)
|
|||||||
message_die(CRITICAL_ERROR, "Couldn't open $template_name template config file");
|
message_die(CRITICAL_ERROR, "Couldn't open $template_name template config file");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) )
|
$img_lang = ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english';
|
||||||
|
|
||||||
|
while( list($key, $value) = @each($images) )
|
||||||
{
|
{
|
||||||
while( list($key, $value) = @each($images) )
|
$images[$key] = str_replace("{LANG}", 'lang_' . $img_lang, $value);
|
||||||
{
|
|
||||||
$images[$key] = str_replace("{LANG}", 'lang_' . $board_config['default_lang'], $value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user