Skip to content

Commit

Permalink
actual fix for possibility of different _designRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbeaty committed Dec 6, 2024
1 parent cc12379 commit 6c40ba6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/code/core/Mage/Core/Model/Design/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ public function __construct(array $params = [])
$files = [];

foreach (Maho::getInstalledPackages() as $package => $info) {
$path = $package === 'root' ? $this->_designRoot : $info['path'];
foreach (glob("$path/app/design/*/*/*/etc/theme.xml") as $file) {
if ($package === 'root') {
$designRoot = $this->_designRoot;
} else {
$designRoot = $info['path'] . '/app/design';
}
foreach (glob("$designRoot/*/*/*/etc/theme.xml") as $file) {
$files[Maho::toRelativePath($file)] = $file;
}
}
Expand Down

0 comments on commit 6c40ba6

Please sign in to comment.