[ticket/16978] Resolve invalid twig syntax

PHPBB3-16978
This commit is contained in:
Marc Alexander 2022-06-04 21:57:47 +02:00
parent 25a84713c0
commit 9622105d01
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -22,24 +22,24 @@
</dl> </dl>
{% endif %} {% endif %}
</div> </div>
{% if .to_recipient or .bcc_recipient %} {% if to_recipient or bcc_recipient %}
<hr> <hr>
{% endif %} {% endif %}
<div class="column1"> <div class="column1">
{% if .to_recipient %} {% if to_recipient %}
<dl> <dl>
<dt><label>{{ lang('TO_MASS') ~ lang('COLON') }}</label></dt> <dt><label>{{ lang('TO_MASS') ~ lang('COLON') }}</label></dt>
<dd class="recipients"> <dd class="recipients">
<ul class="recipients"> <ul class="recipients">
{% for to_recipient in .to_recipient %} {% for recipient in to_recipient %}
<li> <li>
{% if not S_EDIT_POST %} {% if not S_EDIT_POST %}
<input type="submit" name="remove_{{ to_recipient.TYPE }}[{{ to_recipient.UG_ID }}]" value="x" class="button1 button button-form-bold"> <input type="submit" name="remove_{{ recipient.TYPE }}[{{ recipient.UG_ID }}]" value="x" class="button1 button button-form-bold">
{% endif %} {% endif %}
{% if to_recipient.IS_GROUP %} {% if recipient.IS_GROUP %}
<a href="{{ to_recipient.U_VIEW }}" style="color: {{ to_recipient.COLOUR }}"><strong>{{ to_recipient.NAME }}</strong></a> <a href="{{ recipient.U_VIEW }}" style="color: {{ recipient.COLOUR }}"><strong>{{ recipient.NAME }}</strong></a>
{% else %} {% else %}
{{ to_recipient.NAME_FULL }} {{ recipient.NAME_FULL }}
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}
@ -48,21 +48,21 @@
</dl> </dl>
{% endif %} {% endif %}
</div> </div>
{% if .bcc_recipient %} {% if bcc_recipient %}
<div class="column2"> <div class="column2">
<dl> <dl>
<dt><label>{{ lang('BCC') ~ lang('COLON') }}</label></dt> <dt><label>{{ lang('BCC') ~ lang('COLON') }}</label></dt>
<dd class="recipients"> <dd class="recipients">
<ul class="recipients"> <ul class="recipients">
{% for bcc_recipient in .bcc_recipient %} {% for recipient in bcc_recipient %}
<li> <li>
{% if not S_EDIT_POST %} {% if not S_EDIT_POST %}
<input type="submit" name="remove_{{ bcc_recipient.TYPE }}[{{ bcc_recipient.UG_ID }}]" value="x" class="button1 button button-form-bold"> <input type="submit" name="remove_{{ recipient.TYPE }}[{{ recipient.UG_ID }}]" value="x" class="button1 button button-form-bold">
{% endif %} {% endif %}
{% if bcc_recipient.IS_GROUP %} {% if recipient.IS_GROUP %}
<a href="{{ bcc_recipient.U_VIEW }}" style="color: {{ bcc_recipient.COLOUR }}"><strong>{{ bcc_recipient.NAME }}</strong></a> <a href="{{ recipient.U_VIEW }}" style="color: {{ recipient.COLOUR }}"><strong>{{ recipient.NAME }}</strong></a>
{% else %} {% else %}
{{ bcc_recipient.NAME_FULL }} {{ recipient.NAME_FULL }}
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}
@ -85,18 +85,18 @@
<input class="inputbox" type="text" name="username_list" id="username_list" size="20" value=""> <input type="submit" name="add_to" value="{{ lang('ADD') }}" class="button1 button button-form-bold"> <input class="inputbox" type="text" name="username_list" id="username_list" size="20" value=""> <input type="submit" name="add_to" value="{{ lang('ADD') }}" class="button1 button button-form-bold">
</dd> </dd>
{% endif %} {% endif %}
{% if .to_recipient %} {% if to_recipient %}
<dd class="recipients"> <dd class="recipients">
<ul class="recipients"> <ul class="recipients">
{% for to_recipient in .to_recipient %} {% for recipient in to_recipient %}
<li> <li>
{% if to_recipient.IS_GROUP %} {% if recipient.IS_GROUP %}
<a href="{{ to_recipient.U_VIEW }}"><strong>{{ to_recipient.NAME }}</strong></a> <a href="{{ recipient.U_VIEW }}"><strong>{{ recipient.NAME }}</strong></a>
{% else %} {% else %}
{{ to_recipient.NAME_FULL }} {{ recipient.NAME_FULL }}
{% endif %} {% endif %}
{% if not S_EDIT_POST %} {% if not S_EDIT_POST %}
&nbsp;<input type="submit" name="remove_{{ to_recipient.TYPE }}[{{ to_recipient.UG_ID }}]" value="x" class="button1 button button-form-bold"> &nbsp;<input type="submit" name="remove_{{ recipient.TYPE }}[{{ recipient.UG_ID }}]" value="x" class="button1 button button-form-bold">
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}