Fix for bad rendering of modules

This commit is contained in:
Andy Miller 2023-02-17 16:00:46 -07:00
parent 1fae4504a2
commit ea010f19f0
No known key found for this signature in database
GPG Key ID: 9F2CF38AEBDB0AE0
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## mm/dd/2023
1. [](#bugfix)
* Fixed an issue with modular pages rendering thew wrong template when dynamically changing the page
* Fixed an issue with `email` validation that was failing on UTF-8 characters. Following best practices and now only check for `@` and length.
# v1.7.38

View File

@ -513,7 +513,7 @@ class Twig
$default = $page->isModule() ? 'modular/default' : 'default';
$extension = $format ?: $page->templateFormat();
$twig_extension = $extension ? '.'. $extension .TWIG_EXT : TEMPLATE_EXT;
$template_file = $this->template($page->template() . $twig_extension);
$template_file = $template . $twig_extension;
// TODO: no longer needed in Twig 3.
/** @var ExistsLoaderInterface $loader */