1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

[ticket/16990] Fix for the style template code in the post editor

The code present in the prosilver style template causes the wrong
checkbox to be displayed in the post editor if the combination
`f_delete`:true and `f_softdelete`:false is active in the user
context. With this combination, this effectively prevents a forum
post from being deleted via the editor options.

Corrected the relevant section and switched to Twig syntax

PHPBB3-16990
This commit is contained in:
LukeWCS 2022-04-26 20:42:08 +02:00 committed by Ruben Calvo
parent a12a6f52ae
commit 751b0e2ede

View File

@ -183,16 +183,18 @@
</dl>
<!-- ENDIF -->
<!-- IF S_SOFTDELETE_ALLOWED or S_DELETE_ALLOWED -->
{% if S_SOFTDELETE_ALLOWED || S_DELETE_ALLOWED %}
<hr class="dashed" />
<dl>
<dt><label for="delete">{L_DELETE_POST}{L_COLON}</label></dt>
<dd><label for="delete"><input type="checkbox" name="delete" id="delete" {S_SOFTDELETE_CHECKED} /> {L_DELETE_POST_WARN}</label></dd>
<!-- IF S_DELETE_ALLOWED and S_SOFTDELETE_ALLOWED -->
<dd><label for="delete_permanent"><input type="checkbox" name="delete_permanent" id="delete_permanent" /> {L_DELETE_POST_PERMANENTLY}</label></dd>
<!-- ENDIF -->
<dt><label for="delete">{{ lang('DELETE_POST') ~ lang('COLON') }}</label></dt>
{% if S_SOFTDELETE_ALLOWED %}
<dd><label for="delete"><input type="checkbox" name="delete" id="delete" {{ S_SOFTDELETE_CHECKED }} /> {{ lang('DELETE_POST_WARN') }}</label></dd>
{% endif %}
{% if S_DELETE_ALLOWED %}
<dd><label for="delete_permanent"><input type="checkbox" name="delete_permanent" id="delete_permanent" /> {{ lang('DELETE_POST_PERMANENTLY') }}</label></dd>
{% endif %}
</dl>
<!-- ENDIF -->
{% endif %}
<!-- IF S_EDIT_REASON -->
<dl>