From 77f2112a98a48727e7c3f4a2b1e7f4d0269e2613 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 22 Dec 2002 12:20:35 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions_selects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_selects.php b/phpBB/includes/functions_selects.php index f669b27499..3335795213 100644 --- a/phpBB/includes/functions_selects.php +++ b/phpBB/includes/functions_selects.php @@ -33,7 +33,7 @@ function language_select($default, $select_name = "language", $dirname="language $lang = array(); 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)); $displayname = preg_replace("/^(.*?)_(.*)$/", "\\1 [ \\2 ]", $filename);