From: Alexander Ebert Date: Mon, 17 Apr 2023 16:43:21 +0000 (+0200) Subject: Add a hint for possible errors in the custom CSS for the dark mode X-Git-Tag: 6.0.0_Alpha_1~243 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96a03a4b80381096293124ed9e0321bf599b80c6;p=GitHub%2FWoltLab%2FWCF.git Add a hint for possible errors in the custom CSS for the dark mode Fixes #5378 --- diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 2b322c1ace..1fc290d67d 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -522,6 +522,7 @@ class StyleAddForm extends AbstractForm throw new UserInputException('individualScss', [ 'message' => $result->getMessage(), + 'hasDarkMode' => false, ]); } } diff --git a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php index cacdf0f756..d41f1571bf 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleEditForm.class.php @@ -145,6 +145,7 @@ class StyleEditForm extends StyleAddForm throw new UserInputException('individualScss', [ 'message' => $result->getMessage(), + 'hasDarkMode' => $this->style->hasDarkMode, ]); } } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index a63eddd59c..767afefb3a 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -2856,7 +2856,7 @@ Abschnitte dürfen nicht leer sein und nur folgende Zeichen enthalten: [a-z - + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 9cd6b93743..c74e80b35f 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2788,7 +2788,7 @@ If you have already bought the licenses for the listed apps, th - +