From d6f771c07667aafe84edf86e45daab451dc79f47 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 5 Jul 2013 18:40:27 +0200 Subject: [PATCH] Rename hasLoginTermsOfuse --- lib/Alchemy/Phrasea/Application.php | 2 +- templates/web/login/layout/base-layout.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index d7cfe6ea57..090e8b5057 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -693,7 +693,7 @@ class Application extends SilexApplication return count(\User_Adapter::getInstance($usrId, $this)->ACL()->get_granted_base()) > 0; } - public function hasTermsOfUse() + public function hasLoginTermsOfUse() { return '' !== \databox_cgu::getHome($this); } diff --git a/templates/web/login/layout/base-layout.html.twig b/templates/web/login/layout/base-layout.html.twig index 7fbd9f90e1..da02f24500 100644 --- a/templates/web/login/layout/base-layout.html.twig +++ b/templates/web/login/layout/base-layout.html.twig @@ -78,7 +78,7 @@
  • {% trans "Help" %}
  • - {% if app.hasTermsOfUse() %} + {% if app.hasLoginTermsOfUse() %}
  • {% block tou_link %} {% trans "Terms of use" %}