Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9fc9cc4

Browse filesBrowse files
committed
bug #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 #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
Copy full SHA for 9fc9cc4

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.