Skip to content

Commit 0349294

Browse files
committed
bug symfony#32464 [WebProfilerBundle] Fix Twig 1.x compatibility (yceruto)
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
2 parents bf466b1 + a9a6eb5 commit 0349294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Controller/ExceptionController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function showAction($token)
6060
$exception = $this->profiler->loadProfile($token)->getCollector('exception')->getException();
6161
$template = $this->getTemplate();
6262

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

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

0 commit comments

Comments
 (0)