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)

SVN:trunk[2619]
This commit is contained in:
Denis Flaven
2013-03-13 16:52:10 +00:00
parent acf4c7a28a
commit c6ba656f1d

View File

@@ -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) )