Skip to content

Commit 578e129

Browse files
committed
Fix for modular page preview #2066
1 parent 7d215f9 commit 578e129

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.4.7
2+
## mm/dd/2018
3+
4+
1. [](#bugfix)
5+
* Fix for modular page preview [#2066](https://github.com/getgrav/grav/issues/2066)
6+
17
# v1.4.6
28
## 06/20/2018
39

system/src/Grav/Common/Twig/Twig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function processPage(Page $item, $content = null)
238238
// Process Modular Twig
239239
if ($item->modularTwig()) {
240240
$twig_vars['content'] = $content;
241-
$extension = $this->grav['uri']->extension();
241+
$extension = $item->templateFormat('html');
242242
$extension = $extension ? ".{$extension}.twig" : TEMPLATE_EXT;
243243
$template = $item->template() . $extension;
244244
$output = $content = $local_twig->render($template, $twig_vars);

0 commit comments

Comments
 (0)