소스 검색

Sort the modules before processing them for dependencies, in order to obtain a predictable result independent from the order of the modules in the file system... hopefully... (should fix Trac#679)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2619 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 년 전
부모
커밋
7587e5eb35
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      setup/modulediscovery.class.inc.php

+ 1 - 0
setup/modulediscovery.class.inc.php

@@ -114,6 +114,7 @@ class ModuleDiscovery
 		{
 			$aDependencies[$sId] = $aModule['dependencies'];
 		}
+		ksort($aDependencies);
 		$aOrderedModules = array();
 		$iLoopCount = 1;
 		while(($iLoopCount < count(self::$m_aModules)) && (count($aDependencies) > 0) )