浏览代码

[WebProfilerBundle] fixed WDT (please test before sending a PR -- I'm wasting my time)

Fabien Potencier 14 年之前
父节点
当前提交
6fe8884ad8

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Redirection/interception.html.twig → src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_redirect.html.twig


+ 1 - 1
src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php

@@ -52,7 +52,7 @@ class WebDebugToolbarListener
             // keep current flashes for one more request
             $request->getSession()->setFlashes($request->getSession()->getFlashes());
 
-            $response->setContent($this->templating->render('WebDebugToolbar:Profiler:redirect.html.twig', array('location' => $response->headers->get('Location'))));
+            $response->setContent($this->templating->render('WebProfilerBundle:Profiler:toolbar_redirect.html.twig', array('location' => $response->headers->get('Location'))));
             $response->setStatusCode(200);
             $response->headers->remove('Location');
         }