Merge pull request #274 from bezumkin/patch-1

Fixed method tagPaste
This commit is contained in:
Ivan Shalganov 2017-06-29 13:49:38 +03:00 committed by GitHub
commit 2d968ab8d0
1 changed files with 1 additions and 1 deletions

View File

@ -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)."<?php ";