mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 22:15:31 +01:00
Added / to dirname . file for is_file/links for language selector ...
git-svn-id: file:///svn/phpbb/trunk@1810 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
eb86e9ba68
commit
af4587e51d
@ -744,7 +744,7 @@ function language_select($default, $select_name = "language", $dirname="language
|
||||
$lang_select = "<select name=\"$select_name\">";
|
||||
while($file = readdir($dir))
|
||||
{
|
||||
if( ereg("^lang_", $file) && !is_file($dirname . $file) && !is_link($dirname . $file) )
|
||||
if( ereg("^lang_", $file) && !is_file($dirname . "/" . $file) && !is_link($dirname . "/" . $file) )
|
||||
{
|
||||
$filename = str_replace("lang_", "", $file);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user