소스 검색

+ read active project config file if exists

Piotr Labudda 7 년 전
부모
커밋
a8e421ca4b
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      SE/se-lib/Config.php

+ 9 - 0
SE/se-lib/Config.php

@@ -61,6 +61,15 @@ class Config {
 
 		if ($_main_config === null) {
 			$_main_config = self::getConfFile();
+
+			if ($projPath = Config::getProjectPath()) {
+				if (file_exists("{$projPath}/config.php")) {
+					$projConfig = include "{$projPath}/config.php";
+					if (!empty($projConfig)) {
+						$_main_config = array_merge($_main_config, $projConfig);
+					}
+				}
+			}
 		}
 
 		if ($key == 'get-all-data') {