Skip to content

Commit

Permalink
Make pattern theme paths relative instead of absolute.
Browse files Browse the repository at this point in the history
Since twig 2.14.5 this is not supported. More info: https://github.com/twigphp/Twig/blob/v2.14.5/CHANGELOG
  • Loading branch information
omarlopesino committed May 18, 2021
1 parent cd03369 commit e0b930e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function processCustomThemeHookProperty(PatternDefinition $definition)
$module = $this->moduleHandler->getModule($definition->getProvider());
$return['path'] = $module->getPath() . '/templates';
if ($this->templateExists($definition->getBasePath(), $definition->getTemplate())) {
$return['path'] = str_replace($this->root, '', $definition->getBasePath());
$return['path'] = str_replace($this->root . '/', '', $definition->getBasePath());
}
}
return $return;
Expand Down

0 comments on commit e0b930e

Please sign in to comment.