Skip to content

Commit

Permalink
fix: πŸ› check if template folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
woldtwerk committed Sep 18, 2024
1 parent d6f6f0e commit 875d9ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(
$this->distThemeName = "{$this->activeThemeName}_dist";

$this->addPath('.', '__main__');
$this->addPath($this->activeTheme->getPath() . '/templates', $this->activeThemeName);
file_exists($this->activeTheme->getPath() . '/templates') && $this->addPath($this->activeTheme->getPath() . '/templates', $this->activeThemeName);
foreach ($this->activeTheme->getBaseThemeExtensions() as $baseTheme) {
$path = $baseTheme->getPath() . '/templates';
file_exists($path) && $this->addPath($path, $baseTheme->getName());
Expand Down

0 comments on commit 875d9ae

Please sign in to comment.