瀏覽代碼

[TwigBundle] made a small optimization

Fabien Potencier 14 年之前
父節點
當前提交
1687831cb7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/TwigBundle/TokenParser/HelperTokenParser.php

+ 1 - 1
src/Symfony/Bundle/TwigBundle/TokenParser/HelperTokenParser.php

@@ -55,7 +55,7 @@ class HelperTokenParser extends \Twig_SimpleTokenParser
     {
         return $this->output(
             $this->markAsSafe(
-                $this->getAttribute(
+                $this->call(
                     $this->getAttribute('_view', $this->helper),
                     $this->method,
                     $this->getNodeValues($values)