Skip to content

Commit 9fc9cc4

Browse files
committed
bug symfony#23268 Show exception is checked twice in ExceptionController of twig (gmponos)
This PR was submitted for the 3.4 branch but it was merged into the 2.7 branch instead (closes symfony#23268). Discussion ---------- Show exception is checked twice in ExceptionController of twig | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | N/A I think that the $showException variable is checked twice. Check line 105 of the same file. Hope I did not miss anythings since the tests are passing. Commits ------- a433cec Show exception is checked twice in ExceptionController of twig
2 parents f7de083 + a433cec commit 9fc9cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function findTemplate(Request $request, $format, $code, $showException
125125
// default to a generic HTML exception
126126
$request->setRequestFormat('html');
127127

128-
return new TemplateReference('TwigBundle', 'Exception', $showException ? 'exception_full' : $name, 'html', 'twig');
128+
return new TemplateReference('TwigBundle', 'Exception', $name, 'html', 'twig');
129129
}
130130

131131
// to be removed when the minimum required version of Twig is >= 3.0

0 commit comments

Comments
 (0)