Skip to content

Commit 2cfa264

Browse files
author
Olga Kopylova
committed
MAGETWO-44119: Module-specific styles are not available for EE modules while installing magento via composer
- skip module-based resolution of view files, if requested module is not registered (to avoid an exception)
1 parent 2d189de commit 2cfa264

File tree

1 file changed

+3
-0
lines changed
  • lib/internal/Magento/Framework/View/Design/Fallback/Rule

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/View/Design/Fallback/Rule/Module.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public function getPatternDirs(array $params)
5959
ComponentRegistrar::MODULE,
6060
$params['module_name']
6161
);
62+
if (empty($params['module_dir'])) {
63+
return [];
64+
}
6265
return $this->rule->getPatternDirs($params);
6366
}
6467
}

0 commit comments

Comments
 (0)