Fix date_modify filter for PHP 5.2
authorJordi Boggiano <j.boggiano@seld.be>
Wed, 27 Jun 2012 08:25:59 +0000 (10:25 +0200)
committerJordi Boggiano <j.boggiano@seld.be>
Wed, 27 Jun 2012 08:25:59 +0000 (10:25 +0200)
lib/Twig/Extension/Core.php

index bfdfac3..0ebabc0 100644 (file)
@@ -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;
 }
 
 /**