Explorar o código

update defineconfig function to include array

CauseFX %!s(int64=6) %!d(string=hai) anos
pai
achega
984f09eb15
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 . '_');
 		}
 	}