From 63407e7e0681f28d25b5b08d560496e1c8b3f5d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 5 Apr 2023 16:23:35 +0200 Subject: [PATCH] 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 --- .../install/files/lib/system/style/StyleCompiler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.20.1