Замена Compiler::toArray на var_export

Замена Compiler::toArray на var_export($value, true)
This commit is contained in:
evseevnn 2014-01-31 12:24:21 +03:00
parent be7f2e6fbc
commit 0b8dd86c30

View File

@ -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;
}
}
}