From: Tim Düsterhus Date: Wed, 5 Apr 2023 14:23:35 +0000 (+0200) Subject: Fix compiling styles with individual SCSS for dark mode X-Git-Tag: 6.0.0_Alpha_1~293 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63407e7e0681f28d25b5b08d560496e1c8b3f5d0;p=GitHub%2FWoltLab%2FWCF.git Fix compiling styles with individual SCSS for dark mode The variable was not properly cleared after using including the contents within the SCSS and then was attempted to be parsed as an SCSS value to provide it as a SCSS variable. Introduced in ba7168323f6632361b694d7eb2c09439902fe447. Fixes #5398 --- diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index 08bdf29e7c..723edc8969 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -123,7 +123,7 @@ final class StyleCompiler extends SingletonFactory } if (isset($variables['individualScssDarkMode'])) { $individualScssDarkMode = $variables['individualScssDarkMode']; - unset($variables['individualScss']); + unset($variables['individualScssDarkMode']); if ($individualScssDarkMode) { $individualScss .= \sprintf( @@ -260,7 +260,7 @@ final class StyleCompiler extends SingletonFactory } if (isset($variables['individualScssDarkMode'])) { $individualScssDarkMode = $variables['individualScssDarkMode']; - unset($variables['individualScss']); + unset($variables['individualScssDarkMode']); if ($individualScssDarkMode) { $individualScss .= \sprintf(