mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
There is no default_language ...
git-svn-id: file:///svn/phpbb/trunk@4185 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -175,11 +175,12 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// No appropriate language found ... so let's use the first one in the language
|
// No appropriate language found ... so let's use the first one in the language
|
||||||
// dir, this may or may not be English
|
// dir, this may or may not be English
|
||||||
if (!$language)
|
if (!$language)
|
||||||
{
|
{
|
||||||
$dir = @opendir($phpbb_root_path . 'language');
|
$dir = @opendir($phpbb_root_path . 'language');
|
||||||
while ($file = readdir($dir))
|
while ($file = readdir($dir))
|
||||||
{
|
{
|
||||||
@@ -191,12 +192,6 @@ if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && !$language)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$language)
|
|
||||||
{
|
|
||||||
$language = $default_language;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
include($phpbb_root_path . 'language/' . $language . '/lang_main.'.$phpEx);
|
include($phpbb_root_path . 'language/' . $language . '/lang_main.'.$phpEx);
|
||||||
|
Reference in New Issue
Block a user