upgrade twig library
This commit is contained in:
5
inc/lib/Twig/Compiler.php
Normal file → Executable file
5
inc/lib/Twig/Compiler.php
Normal file → Executable file
@@ -180,11 +180,12 @@ class Twig_Compiler implements Twig_CompilerInterface
|
||||
$this->raw($value ? 'true' : 'false');
|
||||
} elseif (is_array($value)) {
|
||||
$this->raw('array(');
|
||||
$i = 0;
|
||||
$first = true;
|
||||
foreach ($value as $key => $value) {
|
||||
if ($i++) {
|
||||
if (!$first) {
|
||||
$this->raw(', ');
|
||||
}
|
||||
$first = false;
|
||||
$this->repr($key);
|
||||
$this->raw(' => ');
|
||||
$this->repr($value);
|
||||
|
||||
Reference in New Issue
Block a user