mirror of
https://github.com/getgrav/grav.git
synced 2026-07-20 04:41:14 +02:00
Minor fix for adding custom page vars if page template file cannot be found
This commit is contained in:
@@ -347,7 +347,7 @@ class Twig
|
||||
if ($ext != '.html' . TWIG_EXT) {
|
||||
try {
|
||||
$page->templateFormat('html');
|
||||
$output = $this->twig->render($page->template() . '.html' . TWIG_EXT, $twig_vars);
|
||||
$output = $this->twig->render($page->template() . '.html' . TWIG_EXT, $vars + $twig_vars);
|
||||
} catch (\Twig_Error_Loader $e) {
|
||||
throw new \RuntimeException($error_msg, 400, $e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user