Skip to content

Commit

Permalink
Fixed L4 change
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored and tmotyl committed Dec 30, 2022
1 parent 42d5b7d commit 6934647
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Config/MagentoCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public function loadModules()
*/
public function loadModulesConfiguration(array $fileName, $mergeToObject = null, $mergeModel = null)
{
$disableLocalModules = $this->_disableLocalModules();

if ($mergeToObject === null) {
$mergeToObject = clone $this->_prototype;
$mergeToObject->loadString('<config/>');
Expand All @@ -299,7 +301,7 @@ public function loadModulesConfiguration(array $fileName, $mergeToObject = null,
foreach ($modules as $modName => $module) {
/** @var \Mage_Core_Model_Config_Element $module */
if ($module->is('active')) {
if ((string)$module->codePool === 'local') {
if ($disableLocalModules && ((string)$module->codePool === 'local')) {
continue;
}

Expand Down Expand Up @@ -559,4 +561,9 @@ protected function _isNodeNameHasUpperCase(\Mage_Core_Model_Config_Element $even
{
return (strtolower($event->getName()) !== (string)$event->getName());
}

protected function _disableLocalModules(): bool
{
return false;
}
}

0 comments on commit 6934647

Please sign in to comment.