Skip to content

Commit 9be0ea3

Browse files
committed
Use source() function to include assets in template
1 parent 280a725 commit 9be0ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/views/Profiler/dump.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block toolbar %}
44
{% if collector.dumpsCount %}
55
{% set icon %}
6-
{{ include('@Debug/Profiler/icon.svg') }}
6+
{{ source('@Debug/Profiler/icon.svg') }}
77
<span class="sf-toolbar-value">{{ collector.dumpsCount }}</span>
88
{% endset %}
99

@@ -35,7 +35,7 @@
3535

3636
{% block menu %}
3737
<span class="label {{ collector.dumpsCount == 0 ? 'disabled' }}">
38-
<span class="icon">{{ include('@Debug/Profiler/icon.svg') }}</span>
38+
<span class="icon">{{ source('@Debug/Profiler/icon.svg') }}</span>
3939
<strong>Debug</strong>
4040
</span>
4141
{% endblock %}

0 commit comments

Comments
 (0)