From 3cf31ce0ec27002a047dcd41b3e1f93461c493dd Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 25 Oct 2018 11:11:26 -0300 Subject: [PATCH] Avoid twig deprecation warning Using "is defined" for prevent twig deprecation message: `Silent display of undefined block "modal_footer" in template "modals/modal.html.twig" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block('modal_footer') is defined" expression to test for block existence` https://github.com/twigphp/Twig/commit/ae9b503b17419102dbec3da4a583cf02c3ecf366 --- app/sprinkles/core/templates/modals/modal.html.twig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/sprinkles/core/templates/modals/modal.html.twig b/app/sprinkles/core/templates/modals/modal.html.twig index cb17dfddd..954e6ef76 100644 --- a/app/sprinkles/core/templates/modals/modal.html.twig +++ b/app/sprinkles/core/templates/modals/modal.html.twig @@ -1,9 +1,6 @@ {# Base layout for modals. #} -{# Conditional block. See http://stackoverflow.com/a/13806784/2970321 #} -{% set _modal_footer = block('modal_footer') %} -