Skip to content

Commit

Permalink
Fixed wrong arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
boekkooi committed Jul 24, 2014
1 parent ac1bce4 commit 5dd5b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Twig/TokenParser/Defer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function parse(Twig_Token $token)
if ($name) {
$name = $this->blockPrefix . $reference . $name;
if ($this->parser->hasBlock($name)) {
$this->bodyParse($stream, $name, $lineno);
$this->bodyParse($stream, $name);
return null;
}
} else {
Expand All @@ -70,7 +70,7 @@ public function parse(Twig_Token $token)
$this->parser->pushLocalScope();
$this->parser->pushBlockStack($name);

$body = $this->bodyParse($stream, $name, $lineno);
$body = $this->bodyParse($stream, $name);

$block->setNode('body', $body);
$this->parser->popBlockStack();
Expand Down

0 comments on commit 5dd5b5c

Please sign in to comment.