瀏覽代碼

update defineconfig function to include array

CauseFX 6 年之前
父節點
當前提交
984f09eb15
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/functions/config-functions.php

+ 1 - 0
api/functions/config-functions.php

@@ -138,6 +138,7 @@ function defineConfig($array, $anyCase = true, $nest_prefix = false)
 		if (is_scalar($v) && !defined($nest_prefix . $k)) {
 			$GLOBALS[$nest_prefix . $k] = $v;
 		} elseif (is_array($v)) {
+			$GLOBALS[$nest_prefix . $k] = $v;
 			defineConfig($v, $anyCase, $nest_prefix . $k . '_');
 		}
 	}