Skip to content

Commit

Permalink
bug #32464 [WebProfilerBundle] Fix Twig 1.x compatibility (yceruto)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

[WebProfilerBundle] Fix Twig 1.x compatibility

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | not needed

Commits
-------

a9a6eb5 Fix Twig 1.x compatibility
  • Loading branch information
fabpot committed Jul 9, 2019
2 parents bf466b1 + a9a6eb5 commit 0349294
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -60,7 +60,7 @@ public function showAction($token)
$exception = $this->profiler->loadProfile($token)->getCollector('exception')->getException();
$template = $this->getTemplate();

if (!$this->twig->getLoader()->exists($template)) {
if (!$this->templateExists($template)) {
$handler = new ExceptionHandler($this->debug, $this->twig->getCharset(), $this->fileLinkFormat);

return new Response($handler->getContent($exception), 200, ['Content-Type' => 'text/html']);
Expand Down

0 comments on commit 0349294

Please sign in to comment.