From 2d662eca1cab2e0213b4d0d6f7d5ce744146f745 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Tue, 30 Oct 2007 12:18:42 +0000 Subject: [PATCH] fixed bug with dir listing in lang_conf() --- fp-includes/core/core.language.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fp-includes/core/core.language.php b/fp-includes/core/core.language.php index 449e9aa..409243b 100644 --- a/fp-includes/core/core.language.php +++ b/fp-includes/core/core.language.php @@ -92,6 +92,7 @@ function lang_getconf($id) { global $lang; + $fpath=LANG_DIR."$id/lang.conf.php"; if (file_exists($fpath)) { include ($fpath); @@ -109,6 +110,7 @@ function _checkFile($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); }