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) {
|
||||
$recursive['recursive'] = true;
|
||||
return '$tpl->getMacro("' . $name . '")->__invoke('.Compiler::toArray($args).', $tpl);';
|
||||
return '$tpl->getMacro("' . $name . '")->__invoke(' . var_export($args, true) . ', $tpl);';
|
||||
} else {
|
||||
$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 . ');';
|
||||
}
|
||||
}
|
||||
@ -1440,4 +1440,4 @@ class Template extends Render
|
||||
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user