Skip to content

Commit

Permalink
Fix too many hook prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Jan 10, 2025
1 parent ed1a1d1 commit 1554886
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/AdminUi/templates/base.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% set generic_hook = 'sylius_admin.base' %}
{% set prefixes = prefixes|default([])|merge([generic_hook]) %}

<!DOCTYPE html>
<html lang="{{ app.request.locale }}">
Expand All @@ -8,11 +7,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>{% block title %}{% apply striptags %}{% hook '#base_title' with { _prefixes: prefixes } %}{% endapply %}{% endblock %}</title>
<title>{% block title %}{% apply striptags %}{% hook generic_hook ~ '#base_title' %}{% endapply %}{% endblock %}</title>

{% block metatags %}{% endblock %}
{% block stylesheets %}
{% hook '#stylesheets' with { _prefixes: prefixes } %}
{% hook generic_hook ~ '#stylesheets' %}
{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
Expand All @@ -21,7 +20,7 @@
</div>

{% block javascripts %}
{% hook '#javascripts' with { _prefixes: prefixes } %}
{% hook generic_hook ~ '#javascripts' %}
{% endblock %}
</body>
</html>

0 comments on commit 1554886

Please sign in to comment.