first part is going to be used, so ignore the rest

This commit is contained in:
behrooz shabani (everplays) 2013-12-13 23:09:06 +03:30
parent df6ecac7df
commit 94fbc01217

View File

@ -352,7 +352,7 @@ class Template
{
$helpers = $this->getEngine()->getHelpers();
// Tokenizer doesn't process the args -if any- so be aware of that
$name = explode(' ', $current[Tokenizer::NAME]);
$name = explode(' ', $current[Tokenizer::NAME], 2);
return $helpers->has(reset($name));
}
@ -388,7 +388,7 @@ class Template
*/
private function _getSection(Context $context, $current, $escaped)
{
$args = explode(' ', $current[Tokenizer::NAME]);
$args = explode(' ', $current[Tokenizer::NAME], 2);
$name = array_shift($args);
$current[Tokenizer::NAME] = $name;
$current[Tokenizer::ARGS] = implode(' ', $args);