Преглед на файлове

[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 %}
                             >