Skip to content

Commit

Permalink
Fixed datalist compatibility with Twig 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche committed Nov 26, 2019
1 parent 9cb8dc2 commit 5892248
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG-2.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.4.5
-----

* Fixed datalist compatibility with Twig 3

2.4.4
-----

Expand Down
2 changes: 1 addition & 1 deletion Twig/Extension/DatalistExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private function renderBlock(Environment $env, DatalistInterface $datalist, arra
$datalistTemplates = $this->getTemplatesForDatalist($datalist);
foreach ($datalistTemplates as $template) {
if (!$template instanceof Template) {
$template = $env->loadTemplate($template);
$template = $env->load($template);
}
do {
foreach ($blockNames as $blockName) {
Expand Down

0 comments on commit 5892248

Please sign in to comment.