From: Tim Düsterhus Date: Mon, 6 Mar 2023 13:14:49 +0000 (+0100) Subject: Disable offline mode when completing FirstTimeSetup X-Git-Tag: 6.0.0_Alpha_1~242^2~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53c10923ac543fd90b4d1b9b975e2ea08199cd89;p=GitHub%2FWoltLab%2FWCF.git Disable offline mode when completing FirstTimeSetup --- diff --git a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupForm.class.php b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupForm.class.php index d5d3575da9..cef8d597c9 100644 --- a/wcfsetup/install/files/lib/acp/form/FirstTimeSetupForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/FirstTimeSetupForm.class.php @@ -2,6 +2,7 @@ namespace wcf\acp\form; +use wcf\data\option\Option; use wcf\data\option\OptionAction; use wcf\system\option\OptionHandler; use wcf\system\WCF; @@ -81,6 +82,7 @@ class FirstTimeSetupForm extends AbstractOptionListForm parent::save(); $saveOptions = $this->optionHandler->save('wcf.acp.option', 'wcf.acp.option.option'); + $saveOptions[Option::getOptionByName('offline')->optionID] = 0; $this->objectAction = new OptionAction([], 'updateAll', ['data' => $saveOptions]); $this->objectAction->executeAction(); $this->saved();