projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7657c01
)
Fix date_modify filter for PHP 5.2
author
Jordi Boggiano
<j.boggiano@seld.be>
Wed, 27 Jun 2012 08:25:59 +0000 (10:25 +0200)
committer
Jordi Boggiano
<j.boggiano@seld.be>
Wed, 27 Jun 2012 08:25:59 +0000 (10:25 +0200)
lib/Twig/Extension/Core.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Extension/Core.php
b/lib/Twig/Extension/Core.php
index
bfdfac3
..
0ebabc0
100644
(file)
--- 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;
}
/**