fixed bug with dir listing in lang_conf()

This commit is contained in:
real_nowhereman 2007-10-30 12:18:42 +00:00
parent 84382f0c5a
commit 2d662eca1c

View File

@ -92,6 +92,7 @@
function lang_getconf($id) { function lang_getconf($id) {
global $lang; global $lang;
$fpath=LANG_DIR."$id/lang.conf.php"; $fpath=LANG_DIR."$id/lang.conf.php";
if (file_exists($fpath)) { if (file_exists($fpath)) {
include ($fpath); include ($fpath);
@ -109,6 +110,7 @@
function _checkFile($directory, $file) { function _checkFile($directory, $file) {
if (is_dir("$directory/$file")) { if (is_dir("$directory/$file")) {
if (!preg_match('![a-z]{2}-[a-z]{2}!', $file)) return 0;
$this->_list[$file] = lang_getconf($file); $this->_list[$file] = lang_getconf($file);
} }