[WebBundle] fixed template name with a custom renderer

This commit is contained in:
Fabien Potencier 2010-05-20 13:52:43 +02:00
parent 8cd2b45004
commit 78286bed68
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class Engine extends BaseEngine
$options = array(
'bundle' => str_replace('\\', '/', $parts[0]),
'controller' => $parts[1],
'renderer' => isset($parts[3]) ? $parts[3] : 'php',
'renderer' => isset($parts[3]) && $parts[3] ? $parts[3] : 'php',
'format' => '',
);