Browse Source

[FrameworkBundle] fixed format management when the default html format is given explicitly

Fabien Potencier 14 years ago
parent
commit
314507c0d9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Symfony/Bundle/FrameworkBundle/Templating/Engine.php

+ 3 - 1
src/Symfony/Bundle/FrameworkBundle/Templating/Engine.php

@@ -167,7 +167,9 @@ class Engine extends BaseEngine
         $elements = explode('.', $parts[2]);
         if (3 === count($elements)) {
             $parts[2] = $elements[0];
-            $options['format'] = '.'.$elements[1];
+            if ('html' !== $elements[1]) {
+                $options['format'] = '.'.$elements[1];
+            }
             $options['renderer'] = $elements[2];
         } elseif (2 === count($elements)) {
             $parts[2] = $elements[0];