Преглед изворни кода

[TwigBundle] simplified code a bit

Fabien Potencier пре 14 година
родитељ
комит
55b343b27c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php

+ 2 - 2
src/Symfony/Bundle/TwigBundle/Extension/TemplatingExtension.php

@@ -93,9 +93,9 @@ class TemplatingExtension extends \Twig_Extension
         return $this->container->get('templating.helper.assets')->getUrl($location);
     }
 
-    public function getFlash($name)
+    public function getFlash($name, $default = null)
     {
-        return $this->container->get('templating.helper.session')->getFlash($name);
+        return $this->container->get('request')->getSession()->getFlash($name, $default = null);
     }
 
     /**