Show exception is checked twice in ExceptionController of twig

This commit is contained in:
George Mponos 2017-06-22 21:40:34 +03:00 committed by Fabien Potencier
parent f7de083cbd
commit a433ceca41

View File

@ -125,7 +125,7 @@ class ExceptionController
// default to a generic HTML exception
$request->setRequestFormat('html');
return new TemplateReference('TwigBundle', 'Exception', $showException ? 'exception_full' : $name, 'html', 'twig');
return new TemplateReference('TwigBundle', 'Exception', $name, 'html', 'twig');
}
// to be removed when the minimum required version of Twig is >= 3.0