mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
commit
8fb0a70311
@ -185,8 +185,12 @@ class Accessor {
|
||||
}
|
||||
}
|
||||
if($tokens->is(',')) {
|
||||
$tokens->skip()->need('[');
|
||||
$vars = $tpl->parseArray($tokens) . ' + $var';
|
||||
$tokens->next();
|
||||
if($tokens->is('[')){
|
||||
$vars = $tpl->parseArray($tokens) . ' + $var';
|
||||
}elseif($tokens->is(T_VARIABLE)){
|
||||
$vars = $tpl->parseExpr($tokens) . ' + $var';
|
||||
}
|
||||
} else {
|
||||
$vars = '$var';
|
||||
}
|
||||
@ -210,4 +214,4 @@ class Accessor {
|
||||
return "array(".implode(",", array_keys($tpl->blocks)).")";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user