ソースを参照

[WebBundle] fixed template name with a custom renderer

Fabien Potencier 15 年 前
コミット
78286bed68
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Symfony/Framework/WebBundle/Templating/Engine.php

+ 1 - 1
src/Symfony/Framework/WebBundle/Templating/Engine.php

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