Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c68b326

Browse filesBrowse files
committed
[TwigBundle] fixed error messages when an error occurs during template compilation
1 parent 2dfac2a commit c68b326
Copy full SHA for c68b326

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/TwigBundle/TwigEngine.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/TwigEngine.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function exists($name)
8989
*/
9090
public function load($name)
9191
{
92-
return $this->environment->loadTemplate($this->parser->parse($name));
92+
return $this->environment->loadTemplate($this->parser->parse($name), is_array($name) ? json_encode($name) : $name);
9393
}
9494

9595
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.