Pārlūkot izejas kodu

fix for uppgrade 2.0.12 to 2.0.13

Sevajol Bastien 11 gadus atpakaļ
vecāks
revīzija
2c51ebdb2d
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/Muzich/CoreBundle/Extension/MyTwigExtension.php

+ 3 - 3
src/Muzich/CoreBundle/Extension/MyTwigExtension.php Parādīt failu

@@ -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