Skip to content

Commit 07f42f2

Browse files
authored
Merge pull request #911 from silvioq/patch-2
Avoid twig deprecation warning
2 parents 3759204 + 3cf31ce commit 07f42f2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/sprinkles/core/templates/modals/modal.html.twig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{# Base layout for modals.
22
#}
33

4-
{# Conditional block. See http://stackoverflow.com/a/13806784/2970321 #}
5-
{% set _modal_footer = block('modal_footer') %}
6-
74
<div class="modal fade" role="dialog">
85
<div class="modal-dialog {% block modal_size %}{% endblock %}" role="document">
96
<div class="modal-content">
@@ -17,9 +14,9 @@
1714
{% block modal_body %}
1815
{% endblock %}
1916
</div>
20-
{% if _modal_footer is not empty %}
17+
{% if block('modal_footer') is defined %}
2118
<div class="modal-footer">
22-
{{ _modal_footer | raw }}
19+
{{ block('modal_footer') | raw }}
2320
</div>
2421
{% endif %}
2522
</div>

0 commit comments

Comments
 (0)