Update config.php

This commit is contained in:
Namhyeon Go 2018-03-09 21:33:04 +09:00 committed by GitHub
parent 33eac24bfa
commit 1e39a90836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,8 @@
if(!function_exists("read_config")) { if(!function_exists("read_config")) {
function read_config() { function read_config() {
$config = array();
if($handle = opendir('./config')) { if($handle = opendir('./config')) {
while (false !== ($file = readdir($handle))) { while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && @end(explode('.', $file)) == 'ini') { if ($file != "." && $file != ".." && @end(explode('.', $file)) == 'ini') {
@ -19,6 +21,8 @@ if(!function_exists("read_config")) {
} }
closedir($handle); closedir($handle);
} }
return $config;
} }
} }