From: Jordi Boggiano Date: Wed, 27 Jun 2012 08:25:59 +0000 (+0200) Subject: Fix date_modify filter for PHP 5.2 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2c9e26edbc6f2522fb425214e3dda19c28bad3db;p=web%2Fkonrad%2Ftwig.git Fix date_modify filter for PHP 5.2 --- diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index bfdfac3..0ebabc0 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -421,7 +421,9 @@ function twig_date_modify_filter(Twig_Environment $env, $date, $modifier) $date = twig_date_converter($env, $date); } - return $date->modify($modifier); + $date->modify($modifier); + + return $date; } /**