Forráskód Böngészése

[WebProfilerBundle] Allow .html.twig in collector template names

Jordi Boggiano 13 éve
szülő
commit
6ca72cf9ac

+ 3 - 0
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

@@ -265,6 +265,9 @@ class ProfilerController extends ContainerAware
             }
 
             list($name, $template) = $arguments;
+            if ('.html.twig' === substr($template, -10)) {
+                $template = substr($template, 0, -10);
+            }
             if (!$profiler->has($name) || !$this->container->get('templating')->exists($template.'.html.twig')) {
                 continue;
             }