Add hook for loads modifiers and tags

This commit is contained in:
bzick
2013-07-24 19:37:07 +04:00
parent 33a2e685e3
commit d5dcfbe410
6 changed files with 72 additions and 28 deletions

View File

@ -879,7 +879,7 @@ class Compiler {
$tpl->escape = false;
if($tokens->is(':')) {
$func = $tokens->getNext(Tokenizer::MACRO_STRING);
$tag = $tpl->getStorage()->getFunction($func);
$tag = $tpl->getStorage()->getTag($func, $tpl);
if($tag["type"] == \Fenom::INLINE_FUNCTION) {
$code = $tpl->parseAct($tokens);
} elseif ($tag["type"] == \Fenom::BLOCK_FUNCTION) {