mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Attempt fix for issue that could cause one autoload module requiring another to load in incorrect order under certain cases
This commit is contained in:
@@ -787,7 +787,7 @@ class ModulesInfo extends ModulesClass {
|
|||||||
case 'namespace':
|
case 'namespace':
|
||||||
return $this->getModuleNamespace($class);
|
return $this->getModuleNamespace($class);
|
||||||
case 'requires':
|
case 'requires':
|
||||||
$v = $this->moduleInfoCache($class, 'requires');
|
$v = $this->moduleInfoCache($class, 'requiresVersions'); // must be 'requiredVersions' here
|
||||||
if(empty($v)) return array(); // early exit when known not to exist
|
if(empty($v)) return array(); // early exit when known not to exist
|
||||||
break; // fallback to calling getModuleInfo
|
break; // fallback to calling getModuleInfo
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user