From: Alexander Ebert Date: Tue, 6 Jun 2023 11:49:52 +0000 (+0200) Subject: Remove unreachable code for the dark mode SCSS X-Git-Tag: 6.0.0_Alpha_1~49 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22dcc61fd794d8492f7067c1e1cb40448d528e43;p=GitHub%2FWoltLab%2FWCF.git Remove unreachable code for the dark mode SCSS 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 --- 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}