mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
fixed constructor + cosmetic
This commit is contained in:
+4
-6
@@ -208,12 +208,10 @@ method::
|
||||
{
|
||||
public function getFilters()
|
||||
{
|
||||
return array_merge(
|
||||
parent::getFilters(),
|
||||
array(
|
||||
'date' => Twig_Filter_Method($this, 'dateFilter')
|
||||
)
|
||||
);
|
||||
return array_merge(parent::getFilters(), array(
|
||||
'date' => new Twig_Filter_Method($this, 'dateFilter'),
|
||||
// ...
|
||||
));
|
||||
}
|
||||
|
||||
public function dateFilter($timestamp, $format = 'F j, Y H:i')
|
||||
|
||||
Reference in New Issue
Block a user