Forráskód Böngészése

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 éve
szülő
commit
7587e5eb35
1 módosított fájl, 1 hozzáadás és 0 törlés
  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) )