Fabien Potencier 13 년 전
부모
커밋
0fc0f99b9d
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

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

@@ -268,15 +268,13 @@ class ProfilerController extends ContainerAware
             if (!$profiler->has($name)) {
                 continue;
             }
+
             if ('.html.twig' === substr($template, -10)) {
                 $template = substr($template, 0, -10);
             }
+
             if (!$this->container->get('templating')->exists($template.'.html.twig')) {
-                throw new \UnexpectedValueException(sprintf(
-                    'The profiler template "%s.html.twig" for data collector "%s" does not exist.',
-                    $template,
-                    $name
-                ));
+                throw new \UnexpectedValueException(sprintf('The profiler template "%s.html.twig" for data collector "%s" does not exist.', $template, $name));
             }
 
             $templates[$name] = $template.'.html.twig';