mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Clean up display of languages, limit to directory names only
git-svn-id: file:///svn/phpbb/trunk@1775 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0c7dec9e54
commit
315f21d087
1 changed files with 3 additions and 3 deletions
|
@ -742,7 +742,7 @@ function language_select($default, $select_name = "language", $dirname="language
|
|||
$lang_select = "<select name=\"$select_name\">";
|
||||
while($file = readdir($dir))
|
||||
{
|
||||
if (ereg("^lang_", $file))
|
||||
if( ereg("^lang_", $file) && !is_file($dirname . $file) && !is_link($dirname . $file) )
|
||||
{
|
||||
$filename = str_replace("lang_", "", $file);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue