فهرست منبع

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)) {
 		if (is_scalar($v) && !defined($nest_prefix . $k)) {
 			$GLOBALS[$nest_prefix . $k] = $v;
 			$GLOBALS[$nest_prefix . $k] = $v;
 		} elseif (is_array($v)) {
 		} elseif (is_array($v)) {
+			$GLOBALS[$nest_prefix . $k] = $v;
 			defineConfig($v, $anyCase, $nest_prefix . $k . '_');
 			defineConfig($v, $anyCase, $nest_prefix . $k . '_');
 		}
 		}
 	}
 	}