Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid twig deprecation warning #910

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/sprinkles/core/templates/modals/modal.html.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{# Base layout for modals.
#}

{# Conditional block. See http://stackoverflow.com/a/13806784/2970321 #}
{% if block('modal_footer') is defined %}
{% set _modal_footer = block('modal_footer') %}
{% endif %}

<div class="modal fade" role="dialog">
<div class="modal-dialog {% block modal_size %}{% endblock %}" role="document">
Expand All @@ -19,7 +20,7 @@
</div>
{% if _modal_footer is not empty %}
<div class="modal-footer">
{{ _modal_footer | raw }}
{{ _modal_footer | default('') | raw }}
</div>
{% endif %}
</div>
Expand Down