Skip to content

Commit 6934647

Browse files
sreicheltmotyl
authored andcommitted
Fixed L4 change
1 parent 42d5b7d commit 6934647

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Config/MagentoCore.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ public function loadModules()
288288
*/
289289
public function loadModulesConfiguration(array $fileName, $mergeToObject = null, $mergeModel = null)
290290
{
291+
$disableLocalModules = $this->_disableLocalModules();
292+
291293
if ($mergeToObject === null) {
292294
$mergeToObject = clone $this->_prototype;
293295
$mergeToObject->loadString('<config/>');
@@ -299,7 +301,7 @@ public function loadModulesConfiguration(array $fileName, $mergeToObject = null,
299301
foreach ($modules as $modName => $module) {
300302
/** @var \Mage_Core_Model_Config_Element $module */
301303
if ($module->is('active')) {
302-
if ((string)$module->codePool === 'local') {
304+
if ($disableLocalModules && ((string)$module->codePool === 'local')) {
303305
continue;
304306
}
305307

@@ -559,4 +561,9 @@ protected function _isNodeNameHasUpperCase(\Mage_Core_Model_Config_Element $even
559561
{
560562
return (strtolower($event->getName()) !== (string)$event->getName());
561563
}
564+
565+
protected function _disableLocalModules(): bool
566+
{
567+
return false;
568+
}
562569
}

0 commit comments

Comments
 (0)