From ea7cad7a786caa39effc608ee59c23ad9ab61b96 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 11 Sep 2023 19:47:04 +0200 Subject: [PATCH] Fix the style variable value for `individualScssDarkMode` --- .../acp/update_com.woltlab.wcf_6.0.0.rc.1.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0.0.rc.1.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0.0.rc.1.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0.0.rc.1.php new file mode 100644 index 0000000000..084d17bc6f --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0.0.rc.1.php @@ -0,0 +1,22 @@ + + */ + +use wcf\system\WCF; + +// Follow-up for https://github.com/WoltLab/WCF/commit/ccf4bcc71444a0c75c7543483585706895b51bd8 +$sql = "UPDATE wcf1_style_variable_value + SET variableValueDarkMode = ? + WHERE variableID = ( + SELECT variableID + FROM wcf1_style_variable + WHERE variableName = ? + )"; +$statement = WCF::getDB()->prepare($sql); +$statement->execute([null, 'individualScssDarkMode']); -- 2.20.1