aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-31 01:16:10 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-31 01:16:10 +0000
commit871bddb6857e2899fb3b7dcd44cee2f96d7961cb (patch)
treecb3f5c2e0e50ae1a1d1a6ca64a511f6f27aec0eb /phpBB
parent09d99238b600a1f5c7c644b311cb822ea791a44c (diff)
downloadforums-871bddb6857e2899fb3b7dcd44cee2f96d7961cb.tar
forums-871bddb6857e2899fb3b7dcd44cee2f96d7961cb.tar.gz
forums-871bddb6857e2899fb3b7dcd44cee2f96d7961cb.tar.bz2
forums-871bddb6857e2899fb3b7dcd44cee2f96d7961cb.tar.xz
forums-871bddb6857e2899fb3b7dcd44cee2f96d7961cb.zip
Changed selection of localised images ... new {LANG} replace format
git-svn-id: file:///svn/phpbb/trunk@2019 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 3 insertions, 3 deletions
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);
}
}