Browse Source

[AsseticBundle] missing argument

Kris Wallsmith 14 năm trước cách đây
mục cha
commit
d6c08f6685
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Symfony/Bundle/AsseticBundle/Twig/StaticNode.php

+ 1 - 1
src/Symfony/Bundle/AsseticBundle/Twig/StaticNode.php

@@ -28,7 +28,7 @@ class StaticNode extends AsseticNode
         return new \Twig_Node_Expression_Function(
             new \Twig_Node_Expression_Name('asset', $body->getLine()),
             new \Twig_Node(array(
-                new \Twig_Node_Expression_Constant($this->getAttribute('target_url')),
+                new \Twig_Node_Expression_Constant($this->getAttribute('target_url'), $body->getLine()),
             )),
             $body->getLine()
         );