fixed bug with dir listing in lang_conf()
This commit is contained in:
parent
84382f0c5a
commit
2d662eca1c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user