Browse Source

fix bug: definir page_title si pas fait avant

Bastien Sevajol 11 years ago
parent
commit
94b3820dc1
2 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Muzich/HomeBundle/Resources/views/Home/index.html.twig
  2. 0 0
      web/sitemap.xml

+ 3 - 0
src/Muzich/HomeBundle/Resources/views/Home/index.html.twig View File

3
 {% if login is not defined %}
3
 {% if login is not defined %}
4
   {% set login = false %}
4
   {% set login = false %}
5
 {% endif %}
5
 {% endif %}
6
+{% if page_title is not defined %}
7
+  {% set page_title = null %}
8
+{% endif %}
6
 
9
 
7
 {% block title %}{% if page_title %}{{ page_title }}{% else %}{{ 'title.home'|trans({}, 'userui') }}{% endif %}{% endblock %}
10
 {% block title %}{% if page_title %}{{ page_title }}{% else %}{{ 'title.home'|trans({}, 'userui') }}{% endif %}{% endblock %}
8
 {% block mainbox_classes %}mainbox_margintop mainbox_nopadding{% endblock %}
11
 {% block mainbox_classes %}mainbox_margintop mainbox_nopadding{% endblock %}

+ 0 - 0
web/sitemap.xml View File