浏览代码

updated last commit to reflect Twig changes

Fabien Potencier 14 年之前
父节点
当前提交
bacb472e39
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/TwigBundle/Extension/SecurityExtension.php

+ 1 - 1
src/Symfony/Bundle/TwigBundle/Extension/SecurityExtension.php

@@ -42,7 +42,7 @@ class SecurityExtension extends \Twig_Extension
     public function getGlobals()
     {
         return array(
-            'has_role' => new \Twig_Function($this, 'vote'),
+            'fn_has_role' => new \Twig_Function($this, 'vote'),
         );
     }