1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +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:
Ryan Cramer
2023-07-16 10:52:44 -04:00
parent 407ec4b11d
commit bde089afd3

View File

@@ -787,7 +787,7 @@ class ModulesInfo extends ModulesClass {
case 'namespace':
return $this->getModuleNamespace($class);
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
break; // fallback to calling getModuleInfo
}