Explorar el Código

update defineconfig function to include array

CauseFX hace 6 años
padre
commit
984f09eb15
Se han modificado 1 ficheros con 1 adiciones y 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 . '_');
 		}
 	}