From 6a7291fac6b49c4224c14bcb3747fad3f9f6740e Mon Sep 17 00:00:00 2001 From: Vasily Naumkin Date: Mon, 26 Jun 2017 12:47:19 +0300 Subject: [PATCH] Fixed method tagPaste We need to remove quotes from names of blocks to get them from array. --- src/Fenom/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fenom/Compiler.php b/src/Fenom/Compiler.php index 2a8dec3..dd48c52 100644 --- a/src/Fenom/Compiler.php +++ b/src/Fenom/Compiler.php @@ -1087,7 +1087,7 @@ class Compiler 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)."