From: Fabien Potencier Date: Wed, 27 Jul 2011 12:25:09 +0000 (+0200) Subject: fixed unit test, updated CHANGELOG X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c7be5242c40e6544ad51ab8a7c05f181e9e3cff2;p=web%2Fkonrad%2Ftwig.git fixed unit test, updated CHANGELOG --- diff --git a/CHANGELOG b/CHANGELOG index 684d4d3..6f02247 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ * 1.1.2 + * fixed json_encode filter on PHP 5.2 * fixed regression introduced in 1.1.1 ({{ block(foo|lower) }}) * fixed inheritance when using conditional parents * fixed compilation of templates when the body of a child template is not empty diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 9013a83..671becb 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -251,8 +251,7 @@ function twig_urlencode_filter($url, $raw = false) return urlencode($url); } -if (version_compare(PHP_VERSION, '5.3.0', '<')) -{ +if (version_compare(PHP_VERSION, '5.3.0', '<')) { /** * JSON encodes a PHP variable. *