Skip to content

Commit efe215c

Browse files
jmscheostrolucky
authored andcommitted
Fix icon display in WDT when profiler_markup_version >= 3
1 parent 8caa8ef commit efe215c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Resources/views/Collector/db.html.twig

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
{% set icon %}
99
{% set status = collector.invalidEntityCount > 0 ? 'red' : collector.querycount > 50 ? 'yellow' %}
1010

11-
<span class="icon">{{ include('@Doctrine/Collector/' ~ (profiler_markup_version < 3 ? 'icon' : 'database') ~ '.svg') }}</span>
11+
{% if profiler_markup_version >= 3 %}
12+
{{ include('@Doctrine/Collector/database.svg') }}
13+
{% else %}
14+
<span class="icon">{{ include('@Doctrine/Collector/icon.svg') }}</span>
15+
{% endif %}
1216

1317
{% if collector.querycount == 0 and collector.invalidEntityCount > 0 %}
1418
<span class="sf-toolbar-value">{{ collector.invalidEntityCount }}</span>

0 commit comments

Comments
 (0)