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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user