merged branch Seldaek/date_modify (PR #760)

Commits
-------

2c9e26e Fix date_modify filter for PHP 5.2

Discussion
----------

Fix date_modify filter for PHP 5.2

The return of the object was added in 5.3, this hopefully fixes it.
This commit is contained in:
Fabien Potencier
2012-06-27 11:12:10 +02:00
+3 -1
View 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;
}
/**