From 22dcc61fd794d8492f7067c1e1cb40448d528e43 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Jun 2023 13:49:52 +0200 Subject: [PATCH] Remove unreachable code for the dark mode SCSS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This code path is unreachable because the validation can only check against the entire code. This means that the check will fail for the regular field, but the error message implies that the error might also be part of the dark mode’s code. Fixes #5533 --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index ff1e4eb405..fd72d87817 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -1091,7 +1091,7 @@ {if $action === 'edit' && $style->hasDarkMode} -
+

{lang}wcf.acp.style.advanced.individualScssDarkMode{/lang}

@@ -1103,11 +1103,6 @@ {lang}wcf.acp.style.advanced.individualScssDarkMode.description{/lang} - {if $errorField == 'individualScssDarkMode'} - - {lang}wcf.acp.style.advanced.individualScssDarkMode.error{/lang} - - {/if}
{/if} @@ -1162,7 +1157,7 @@
{if $action === 'edit' && $style->hasDarkMode} -
+
{lang}wcf.acp.style.advanced.individualScssDarkMode{/lang}{if !$isTainted} ({lang}wcf.acp.style.protected.less{/lang}){/if}
@@ -1174,11 +1169,6 @@ {lang}wcf.acp.style.advanced.individualScssDarkMode.description{/lang} - {if $errorField == 'individualScssDarkMode' && $isTainted} - - {lang}wcf.acp.style.advanced.individualScssDarkMode.error{/lang} - - {/if}
{/if} -- 2.20.1