Skip to content

Commit 1ed7edc

Browse files
committed
Fix: fail silently
1 parent 6498f20 commit 1ed7edc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

djangocms_frontend/templates/djangocms_frontend/admin/base-collapse.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
{% block extrahead %}
55
<link rel="stylesheet" href="{% static 'djangocms_frontend/css/base.css' %}"/>
6-
<meta name="plugin_language" data-plugin-language="{{ plugin.language|default:request.GET.plugin_language }}">
6+
{% with get_plugin_language=request.GET.plugin_language %}
7+
<meta name="plugin_language" data-plugin-language="{{ plugin.language|default:get_plugin_language }}">
8+
{% endwith %}
79
{{ block.super }}
810
{% endblock %}
911

djangocms_frontend/templates/djangocms_frontend/admin/base-tabs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
{% block extrahead %}
44
<link rel="stylesheet" href="{% static 'djangocms_frontend/css/base.css' %}"/>
55
<script src="{% static 'djangocms_frontend/js/bundle.base.js' %}"></script>
6-
<meta name="plugin_language" data-plugin-language="{{ plugin.language|default:request.GET.plugin_language }}">
6+
{% with get_plugin_language=request.GET.plugin_language %}
7+
<meta name="plugin_language" data-plugin-language="{{ plugin.language|default:get_plugin_language }}">
8+
{% endwith %}
79
{{ block.super }}
810
{% endblock %}
911
{% block content_subtitle %}{% endblock %}

0 commit comments

Comments
 (0)