mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Замена Compiler::toArray на var_export
Замена Compiler::toArray на var_export($value, true)
This commit is contained in:
parent
be7f2e6fbc
commit
0b8dd86c30
@ -1307,10 +1307,10 @@ class Template extends Render
|
|||||||
}
|
}
|
||||||
if ($recursive) {
|
if ($recursive) {
|
||||||
$recursive['recursive'] = true;
|
$recursive['recursive'] = true;
|
||||||
return '$tpl->getMacro("' . $name . '")->__invoke('.Compiler::toArray($args).', $tpl);';
|
return '$tpl->getMacro("' . $name . '")->__invoke(' . var_export($args, true) . ', $tpl);';
|
||||||
} else {
|
} else {
|
||||||
$vars = $this->tmpVar();
|
$vars = $this->tmpVar();
|
||||||
return $vars . ' = $var; $var = ' . Compiler::toArray($args) . ';' . PHP_EOL . '?>' .
|
return $vars . ' = $var; $var = ' . var_export($args, true) . ';' . PHP_EOL . '?>' .
|
||||||
$macro["body"] . '<?php' . PHP_EOL . '$var = '.$vars.'; unset(' . $vars . ');';
|
$macro["body"] . '<?php' . PHP_EOL . '$var = '.$vars.'; unset(' . $vars . ');';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user