$saveOptions = $this->optionHandler->save('wcf.acp.option', 'wcf.acp.option.option');
$saveOptions[Option::getOptionByName('offline')->optionID] = 0;
+ $saveOptions[Option::getOptionByName('first_time_setup_state')->optionID] = 1;
$this->objectAction = new OptionAction([], 'updateAll', ['data' => $saveOptions]);
$this->objectAction->executeAction();
$this->saved();
namespace wcf\acp\page;
+use wcf\acp\form\FirstTimeSetupForm;
use wcf\data\devtools\missing\language\item\DevtoolsMissingLanguageItemList;
use wcf\data\package\installation\queue\PackageInstallationQueue;
use wcf\data\user\User;
use wcf\system\registry\RegistryHandler;
use wcf\system\request\LinkHandler;
use wcf\system\WCF;
+use wcf\util\HeaderUtil;
/**
* Shows the welcome page in admin control panel.
exit;
}
+ if (\FIRST_TIME_SETUP_STATE != 1) {
+ HeaderUtil::redirect(LinkHandler::getInstance()->getControllerLink(
+ FirstTimeSetupForm::class,
+ ));
+
+ exit;
+ }
+
// show page
parent::show();
}