Browse Source

[TwigBundle] made a small optimization

Fabien Potencier 14 years ago
parent
commit
1687831cb7
1 changed files with 1 additions and 1 deletions
  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(
         return $this->output(
             $this->markAsSafe(
             $this->markAsSafe(
-                $this->getAttribute(
+                $this->call(
                     $this->getAttribute('_view', $this->helper),
                     $this->getAttribute('_view', $this->helper),
                     $this->method,
                     $this->method,
                     $this->getNodeValues($values)
                     $this->getNodeValues($values)