mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fix: #174
This commit is contained in:
parent
ae93c8f94a
commit
5da2df1eb4
@ -988,10 +988,10 @@ class Template extends Render
|
|||||||
$parser = $this->getStorage()->getAccessor($accessor);
|
$parser = $this->getStorage()->getAccessor($accessor);
|
||||||
$is_var = false;
|
$is_var = false;
|
||||||
if($parser) {
|
if($parser) {
|
||||||
if(is_string($parser)) {
|
if(is_array($parser)) {
|
||||||
return call_user_func_array($parser, array($tokens->next(), $this, &$is_var));
|
|
||||||
} else {
|
|
||||||
return call_user_func_array($parser['parser'], array($parser['accessor'], $tokens->next(), $this, &$is_var));
|
return call_user_func_array($parser['parser'], array($parser['accessor'], $tokens->next(), $this, &$is_var));
|
||||||
|
} else {
|
||||||
|
return call_user_func_array($parser, array($tokens->next(), $this, &$is_var));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new \RuntimeException("Unknown accessor '$accessor'");
|
throw new \RuntimeException("Unknown accessor '$accessor'");
|
||||||
|
Loading…
Reference in New Issue
Block a user