mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Path updates for language file select list generation
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3227 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
de4800e9aa
commit
77f2112a98
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ function language_select($default, $select_name = "language", $dirname="language
|
||||||
$lang = array();
|
$lang = array();
|
||||||
while ( $file = readdir($dir) )
|
while ( $file = readdir($dir) )
|
||||||
{
|
{
|
||||||
if ( ereg("^lang_", $file) && !is_file($dirname . "/" . $file) && !is_link($dirname . "/" . $file) )
|
if (preg_match('#^lang_#i', $file) && !is_file(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)) && !is_link(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)))
|
||||||
{
|
{
|
||||||
$filename = trim(str_replace("lang_", "", $file));
|
$filename = trim(str_replace("lang_", "", $file));
|
||||||
$displayname = preg_replace("/^(.*?)_(.*)$/", "\\1 [ \\2 ]", $filename);
|
$displayname = preg_replace("/^(.*?)_(.*)$/", "\\1 [ \\2 ]", $filename);
|
||||||
|
|
Loading…
Add table
Reference in a new issue