|
@@ -268,15 +268,13 @@ class ProfilerController extends ContainerAware
|
|
if (!$profiler->has($name)) {
|
|
if (!$profiler->has($name)) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
if ('.html.twig' === substr($template, -10)) {
|
|
if ('.html.twig' === substr($template, -10)) {
|
|
$template = substr($template, 0, -10);
|
|
$template = substr($template, 0, -10);
|
|
}
|
|
}
|
|
|
|
+
|
|
if (!$this->container->get('templating')->exists($template.'.html.twig')) {
|
|
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';
|
|
$templates[$name] = $template.'.html.twig';
|