Skip to content

Commit 0ec2c91

Browse files
committed
AppState emulateAreaCode was not respected by file collector
1 parent ba25897 commit 0ec2c91

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/File/Collector

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/File/Collector/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getFiles(ThemeInterface $theme, $filePath)
6565
foreach ($sharedFiles as $file) {
6666
$result[] = $this->fileFactory->create($file->getFullPath(), $file->getComponentName(), null, true);
6767
}
68-
$area = $theme->getData('area');
68+
$area = $theme->getArea();
6969
$themeFiles = $this->componentDirSearch->collectFilesWithContext(
7070
ComponentRegistrar::MODULE,
7171
"view/{$area}/{$this->subDir}{$filePath}"

0 commit comments

Comments
 (0)