Skip to content

Commit a9a6eb5

Browse files
committed
Fix Twig 1.x compatibility
1 parent 1872a5a commit a9a6eb5

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)