File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Filter options
src/Symfony/Bundle/TwigBundle/Controller Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Original file line number Diff line number Diff line change @@ -39,20 +39,19 @@ public function __construct(\Twig_Environment $twig, $debug)
39
39
* @param Request $request The request
40
40
* @param FlattenException $exception A FlattenException instance
41
41
* @param DebugLoggerInterface $logger A DebugLoggerInterface instance
42
- * @param string $_format The format to use for rendering (html, xml, ...)
43
42
*
44
43
* @return Response
45
44
*
46
45
* @throws \InvalidArgumentException When the exception template does not exist
47
46
*/
48
- public function showAction (Request $ request , FlattenException $ exception , DebugLoggerInterface $ logger = null , $ _format = ' html ' )
47
+ public function showAction (Request $ request , FlattenException $ exception , DebugLoggerInterface $ logger = null )
49
48
{
50
49
$ currentContent = $ this ->getAndCleanOutputBuffering ($ request ->headers ->get ('X-Php-Ob-Level ' , -1 ));
51
50
52
51
$ code = $ exception ->getStatusCode ();
53
52
54
53
return new Response ($ this ->twig ->render (
55
- $ this ->findTemplate ($ request , $ _format , $ code , $ this ->debug ),
54
+ $ this ->findTemplate ($ request , $ request -> getRequestFormat () , $ code , $ this ->debug ),
56
55
array (
57
56
'status_code ' => $ code ,
58
57
'status_text ' => isset (Response::$ statusTexts [$ code ]) ? Response::$ statusTexts [$ code ] : '' ,
You can’t perform that action at this time.
0 commit comments