Browse Source

update defineconfig function to include array

CauseFX 6 years ago
parent
commit
984f09eb15
1 changed files with 1 additions and 0 deletions
  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 . '_');
 		}
 	}