Skip to content

Commit eb18925

Browse files
committed
fix(form): bad var to speecify the translation domain
1 parent fee290a commit eb18925

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/pages/userform.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
{% set formName = 'plugin_formcreator_form' %}
4848
<form name="{{ formName }}" method="post" role="form" enctype="multipart/form-data" class="plugin_formcreator_form" action={{ item.getFormURL() }} id="plugin_formcreator_form" data-itemtype="PluginFormcreatorForm" data-id="{{ item.fields['id'] }}">
4949
<h1 class='form-title'>
50-
{{ __(item.fields['name'], domain) }}
50+
{{ __(item.fields['name'], options.domain) }}
5151
<i class="fas fa-print" style="cursor: pointer;" onclick="window.print();"></i>
5252
</h1>
5353
{% if item.fields['content'] != '' %}
5454
<div class="form_header">
55-
{{ __(item.fields['content'], domain)|safe_html }}
55+
{{ __(item.fields['content'], options.domain)|safe_html }}
5656
{{ item.getExtraHeader()|safe_html }}
5757
</div>
5858
{% endif %}
@@ -68,7 +68,7 @@
6868
{% if section.fields['name'] == '' %}
6969
({{ sectionId }})
7070
{% else %}
71-
{{ __(section.fields['name'], domain) }}
71+
{{ __(section.fields['name'], options.domain) }}
7272
{% endif %}
7373
</h2>
7474
</div>
@@ -91,7 +91,7 @@
9191
{% endif %}
9292
{% if not options.public or question.getSubField().isPublicFormCompatible() %}
9393
{% set sessionData = session('formcreator') %}
94-
{{ question.getRenderedHtml(domain, true, sessionData.data)|raw }}
94+
{{ question.getRenderedHtml(options.domain, true, sessionData.data)|raw }}
9595
{% endif %}
9696
{% set lastQuestion = question %}
9797
{% endfor %}

0 commit comments

Comments
 (0)