From 1a50f4edb97c06713574c5c71c379a9a41718981 Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Wed, 28 Dec 2022 02:17:27 +0100 Subject: [PATCH] L4 --- src/Config/MagentoCore.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Config/MagentoCore.php b/src/Config/MagentoCore.php index 7203f3b..703d912 100644 --- a/src/Config/MagentoCore.php +++ b/src/Config/MagentoCore.php @@ -287,8 +287,6 @@ public function loadModules() */ public function loadModulesConfiguration($fileName, $mergeToObject = null, $mergeModel = null) { - $disableLocalModules = false; - if ($mergeToObject === null) { $mergeToObject = clone $this->_prototype; $mergeToObject->loadString(''); @@ -300,7 +298,7 @@ public function loadModulesConfiguration($fileName, $mergeToObject = null, $merg foreach ($modules as $modName => $module) { /** @var \Mage_Core_Model_Config_Element $module */ if ($module->is('active')) { - if ($disableLocalModules && ('local' === (string)$module->codePool)) { + if ((string)$module->codePool === 'local') { continue; } if (!is_array($fileName)) {