Skip to content

Commit

Permalink
L4
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored and tmotyl committed Dec 30, 2022
1 parent 616f665 commit 1a50f4e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Config/MagentoCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<config/>');
Expand All @@ -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)) {
Expand Down

0 comments on commit 1a50f4e

Please sign in to comment.