Skip to content

Commit

Permalink
Fix Twig 1.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Jul 9, 2019
1 parent 1872a5a commit a9a6eb5
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 a9a6eb5

Please sign in to comment.