Force skip rogue values for `individualScssDarkMode`
authorAlexander Ebert <ebert@woltlab.com>
Tue, 13 Feb 2024 16:49:59 +0000 (17:49 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 13 Feb 2024 16:49:59 +0000 (17:49 +0100)
See https://www.woltlab.com/community/thread/304477/

wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index 9cd20e687aa340cb3fdf410dfae2a6dc83ea3146..79399724f5cf2bb0cbbd7f6fb6bd7c6879820e80 100644 (file)
@@ -272,6 +272,8 @@ final class StyleCompiler extends SingletonFactory
             }
         }
 
+        unset($variables[Style::DARK_MODE_PREFIX . 'individualScssDarkMode']);
+
         // add style image path
         $imagePath = '../images/';
         if ($style->imagePath) {