Rename hasLoginTermsOfuse

This commit is contained in:
Nicolas Le Goff
2013-07-05 18:40:27 +02:00
parent 1629c401bf
commit d6f771c076
2 changed files with 2 additions and 2 deletions

View File

@@ -693,7 +693,7 @@ class Application extends SilexApplication
return count(\User_Adapter::getInstance($usrId, $this)->ACL()->get_granted_base()) > 0; return count(\User_Adapter::getInstance($usrId, $this)->ACL()->get_granted_base()) > 0;
} }
public function hasTermsOfUse() public function hasLoginTermsOfUse()
{ {
return '' !== \databox_cgu::getHome($this); return '' !== \databox_cgu::getHome($this);
} }

View File

@@ -78,7 +78,7 @@
<li> <li>
<a href="#">{% trans "Help" %}</a> <a href="#">{% trans "Help" %}</a>
</li> </li>
{% if app.hasTermsOfUse() %} {% if app.hasLoginTermsOfUse() %}
<li> <li>
{% block tou_link %} {% block tou_link %}
<a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a> <a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a>