소스 검색

[WebProfilerBundle] Fixed template to work with the new behavior of {% set %}

Christophe Coevoet 14 년 전
부모
커밋
857a9f3b8b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

+ 1 - 1
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

@@ -19,7 +19,7 @@
                 <ul>
                     {% for name, template in templates %}
                         {% set menu %}{{ template.renderBlock('menu', { 'collector': profiler.get(name)}) }}{% endset %}
-                        {% if menu %}
+                        {% if menu != '' %}
                             <li
                                 {% if name == panel %}class="selected"{% endif %}
                             >