Skip to content

Commit

Permalink
Merge pull request #274 from bezumkin/patch-1
Browse files Browse the repository at this point in the history
Fixed method tagPaste
  • Loading branch information
bzick authored Jun 29, 2017
2 parents 8730343 + 6a7291f commit 2d968ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fenom/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ public static function tagUnset(Tokenizer $tokens, Tag $tag)

public static function tagPaste(Tokenizer $tokens, Tag $tag)
{
$name = $tokens->get(T_CONSTANT_ENCAPSED_STRING);
$name = str_replace(array('\'', '"'), '', $tokens->get(T_CONSTANT_ENCAPSED_STRING));
$tokens->next();
if(isset($tag->tpl->blocks[$name])) {
return "?>".substr($tag->tpl->blocks[$name]["block"], 1, -1)."<?php ";
Expand Down

0 comments on commit 2d968ab

Please sign in to comment.