Browse Source

fix for uppgrade 2.0.12 to 2.0.13

Sevajol Bastien 11 years ago
parent
commit
2c51ebdb2d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Muzich/CoreBundle/Extension/MyTwigExtension.php

+ 3 - 3
src/Muzich/CoreBundle/Extension/MyTwigExtension.php View File

@@ -31,9 +31,9 @@ class MyTwigExtension extends \Twig_Extension {
31 31
   
32 32
   public function getFunctions() {
33 33
     return array(
34
-      'date_or_relative_date'  => new \Twig_Filter_Method($this, 'date_or_relative_date'),
35
-      'event_const'            => new \Twig_Filter_Method($this, 'event_const'),
36
-      'css_list_length_class'  => new \Twig_Filter_Method($this, 'getCssLengthClassForList')
34
+      'date_or_relative_date'  => new \Twig_Function_Method($this, 'date_or_relative_date'),
35
+      'event_const'            => new \Twig_Function_Method($this, 'event_const'),
36
+      'css_list_length_class'  => new \Twig_Function_Method($this, 'getCssLengthClassForList')
37 37
     );
38 38
   }
39 39