From de4800e9aa374365d5ac1796e15cf34926b69c08 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 22 Dec 2002 12:18:34 +0000 Subject: [PATCH] Missing variable names in language file select list generation .. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3226 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/install/install.php b/phpBB/install/install.php index 7cccfd34f2..20335ed9b4 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -612,12 +612,13 @@ else if ((empty($install_step) || $admin_pass1 != $admin_pass2 || empty($admin_p } } - $dir = opendir($phpbb_root_path . 'language'); + $dirname = $phpbb_root_path . 'language'; + $dir = opendir($dirname); $lang_options = array(); while ($file = readdir($dir)) { - if (preg_match('#^lang_#i', $file) && !is_file($dirname . '/' . $file) && !is_link($dirname . '/' . $file)) + if (preg_match('#^lang_#i', $file) && !is_file(@phpbb_realpath($dirname . '/' . $file)) && !is_link(@phpbb_realpath($dirname . '/' . $file))) { $filename = trim(str_replace('lang_', '', $file)); $displayname = preg_replace('/^(.*?)_(.*)$/', '\1 [ \2 ]', $filename);