projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
90931b0
)
simplified code
author
Fabien Potencier
<fabien.potencier@gmail.com>
Mon, 19 Mar 2012 18:17:36 +0000 (19:17 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Mon, 19 Mar 2012 18:17:36 +0000 (19:17 +0100)
lib/Twig/Compiler.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Compiler.php
b/lib/Twig/Compiler.php
index
cd7f3ff
..
656b030
100644
(file)
--- a/
lib/Twig/Compiler.php
+++ b/
lib/Twig/Compiler.php
@@
-150,13
+150,11
@@
class Twig_Compiler implements Twig_CompilerInterface
setlocale(LC_NUMERIC, 'C');
}
- $value = is_string($value) ? "'$value'" : (is_infinite($value) ? str_ireplace('INF', '.Inf', strval($value)) : strval($value));
+ $this->raw($value);
if (false !== $locale) {
setlocale(LC_NUMERIC, $locale);
}
-
- $this->raw($value);
} elseif (null === $value) {
$this->raw('null');
} elseif (is_bool($value)) {