From: Tim Düsterhus Date: Wed, 10 May 2023 08:13:00 +0000 (+0200) Subject: Mark the first time setup as completed on upgrade X-Git-Tag: 6.0.0_Alpha_1~124 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e9423a7cd11118cc20fa0b62c08bf653bd1c183;p=GitHub%2FWoltLab%2FWCF.git Mark the first time setup as completed on upgrade Resolves #5500 --- diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 4c467f3c0f..3cf90c08b9 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -79,6 +79,7 @@ tar cvf com.woltlab.wcf/files_pre_check.tar -C wcfsetup/install/files/ \ + acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php acp/update_com.woltlab.wcf_6.0_landingPage.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php new file mode 100644 index 0000000000..1a281a153b --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_skipFirstTimeSetup.php @@ -0,0 +1,23 @@ + + */ + +use wcf\data\option\Option; +use wcf\data\option\OptionAction; + +$objectAction = new OptionAction( + [], + 'updateAll', + [ + 'data' => [ + Option::getOptionByName('first_time_setup_state')->optionID => -1, + ], + ] +); +$objectAction->executeAction();