mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fix for bad rendering of modules
This commit is contained in:
parent
1fae4504a2
commit
ea010f19f0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user