From 2c9e26edbc6f2522fb425214e3dda19c28bad3db Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 27 Jun 2012 10:25:59 +0200 Subject: [PATCH] Fix date_modify filter for PHP 5.2 --- lib/Twig/Extension/Core.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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; } /** -- 1.7.2.5