Skip to content

Commit f05792a

Browse files
Fix a Twig deprecation (#186)
1 parent a14f15a commit f05792a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Templates/default/html/image.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Overridden so we can control the path to the image based on our copying logic.
33
See CopyImagesListener.
44
#}
5-
{% set wrap_image_with_browser = 'with-browser' in imageNode.options.class ?? '' %}
5+
{% set wrap_image_with_browser = 'with-browser' in (imageNode.options.class ?? '') %}
66
{% if wrap_image_with_browser %}<div class="with-browser">{% endif %}
77
<img src="{{ imageNode.value }}" {% for key, value in imageNode.options %}{{ key }}="{{ value }}" {% endfor %}/>
88
{% if wrap_image_with_browser %}</div>{% endif %}

0 commit comments

Comments
 (0)