From d90b2f7112fd2baca418f62de07aea635bf6178f Mon Sep 17 00:00:00 2001 From: Brikou CARRE Date: Fri, 20 May 2011 05:25:21 -0700 Subject: [PATCH] fixed constructor + cosmetic --- doc/extensions.rst | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/extensions.rst b/doc/extensions.rst index 691ecd5..7e9941f 100644 --- a/doc/extensions.rst +++ b/doc/extensions.rst @@ -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') -- 1.7.2.5