diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-06-29 11:35:55 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-06-29 11:35:55 +0000 |
commit | eba779cb35bb14d62daeb79f319c6055ea71bffa (patch) | |
tree | c8c632f2160581ed074fc74651c31c2805f8377e /phpBB/install | |
parent | 4d6a76730501a55e696971845c90f364a3921512 (diff) | |
download | forums-eba779cb35bb14d62daeb79f319c6055ea71bffa.tar forums-eba779cb35bb14d62daeb79f319c6055ea71bffa.tar.gz forums-eba779cb35bb14d62daeb79f319c6055ea71bffa.tar.bz2 forums-eba779cb35bb14d62daeb79f319c6055ea71bffa.tar.xz forums-eba779cb35bb14d62daeb79f319c6055ea71bffa.zip |
There is no default_language ...
git-svn-id: file:///svn/phpbb/trunk@4185 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rw-r--r-- | phpBB/install/install.php | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/phpBB/install/install.php b/phpBB/install/install.php index bb0713c6ca..5582a3af20 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -175,30 +175,25 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language) } } } +} - // No appropriate language found ... so let's use the first one in the language - // dir, this may or may not be English - if (!$language) +// No appropriate language found ... so let's use the first one in the language +// dir, this may or may not be English +if (!$language) +{ + $dir = @opendir($phpbb_root_path . 'language'); + while ($file = readdir($dir)) { - $dir = @opendir($phpbb_root_path . 'language'); - while ($file = readdir($dir)) - { - $path = $phpbb_root_path . 'language/' . $file; + $path = $phpbb_root_path . 'language/' . $file; - if (!is_file($path) && !is_link($path) && file_exists($path . '/iso.txt')) - { - $language = $file; - break; - } + if (!is_file($path) && !is_link($path) && file_exists($path . '/iso.txt')) + { + $language = $file; + break; } } } -if (!$language) -{ - $language = $default_language; -} - include($phpbb_root_path . 'language/' . $language . '/lang_main.'.$phpEx); include($phpbb_root_path . 'language/' . $language . '/lang_admin.'.$phpEx); |