Fix #75: macros don's share between child and parent templates

This commit is contained in:
Ivan Shalganov
2014-04-09 20:01:20 +04:00
parent 1f9a56500e
commit e9a60041c4
2 changed files with 5 additions and 1 deletions

View File

@ -517,6 +517,7 @@ class Compiler
$t->_extended = true;
$tpl->addDepend($t);
$t->_compatible = & $tpl->_compatible;
$t->macros = & $tpl->macros;
$t->blocks = & $tpl->blocks;
$t->compile();
if ($t->uses) {