Revert "[TwigBundle] fixed error messages when an error occurs during template compilation"

This reverts commit c68b326665.
This commit is contained in:
Fabien Potencier 2011-02-06 21:05:37 +01:00
parent 099b9dee1f
commit 7cb42d2a68

View File

@ -131,6 +131,6 @@ class TwigEngine implements EngineInterface
return $name;
}
return $this->environment->loadTemplate($this->parser->parse($name), is_array($name) ? json_encode($name) : $name);
return $this->environment->loadTemplate($this->parser->parse($name));
}
}