aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 190c481935..53d7a365ac 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -301,12 +301,11 @@ function setup_style($style)
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_' . $board_config['default_lang'], $value);
- }
+ $images[$key] = str_replace("{LANG}", 'lang_' . $img_lang, $value);
}
}