From 751b0e2ede4763444a56c66f20a9cab637a84a38 Mon Sep 17 00:00:00 2001 From: LukeWCS Date: Tue, 26 Apr 2022 20:42:08 +0200 Subject: [PATCH] [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 --- .../prosilver/template/posting_editor.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html index 71918125cb..5b8b3e3f81 100644 --- a/phpBB/styles/prosilver/template/posting_editor.html +++ b/phpBB/styles/prosilver/template/posting_editor.html @@ -183,16 +183,18 @@ - + {% if S_SOFTDELETE_ALLOWED || S_DELETE_ALLOWED %}
-
-
- -
- +
+ {% if S_SOFTDELETE_ALLOWED %} +
+ {% endif %} + {% if S_DELETE_ALLOWED %} +
+ {% endif %}
- + {% endif %}