Skip to content

Commit

Permalink
Fix a Twig deprecation (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored Dec 12, 2024
1 parent a14f15a commit f05792a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Templates/default/html/image.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Overridden so we can control the path to the image based on our copying logic.
See CopyImagesListener.
#}
{% set wrap_image_with_browser = 'with-browser' in imageNode.options.class ?? '' %}
{% set wrap_image_with_browser = 'with-browser' in (imageNode.options.class ?? '') %}
{% if wrap_image_with_browser %}<div class="with-browser">{% endif %}
<img src="{{ imageNode.value }}" {% for key, value in imageNode.options %}{{ key }}="{{ value }}" {% endfor %}/>
{% if wrap_image_with_browser %}</div>{% endif %}

0 comments on commit f05792a

Please sign in to comment.