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

This commit is contained in:
Fabien Potencier 2010-10-27 07:18:02 +02:00
parent e23c3cc702
commit 314507c0d9

View File

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