Update config.php

This commit is contained in:
Namhyeon Go 2018-03-09 21:30:15 +09:00 committed by GitHub
parent 6c03b1e444
commit 7617c6de66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,8 +8,6 @@
if(!function_exists("set_config")) {
function set_config() {
global $config;
if($handle = opendir('./config')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && @end(explode('.', $file)) == 'ini') {
@ -27,8 +25,8 @@ if(!function_exists("set_config")) {
function get_config() {
global $config;
$config = is_array($config) ? $config : array();
return $config;
}
$config = array();
set_config();
$config = set_config();