// execute current step
switch ($step) {
case 'selectSetupLanguage':
- if (!self::$developerMode) {
- $this->calcProgress(0);
+ $this->calcProgress(0);
- return $this->selectSetupLanguage();
- }
+ return $this->selectSetupLanguage();
- // no break
case 'showLicense':
- if (!self::$developerMode) {
- $this->calcProgress(1);
+ $this->calcProgress(1);
- return $this->showLicense();
- }
+ return $this->showLicense();
- // no break
case 'showSystemRequirements':
- if (!self::$developerMode) {
- $this->calcProgress(2);
-
- return $this->showSystemRequirements();
- }
+ $this->calcProgress(2);
- // no break
+ return $this->showSystemRequirements();
case 'configureDB':
$this->calcProgress(3);
*/
protected function selectSetupLanguage(): ResponseInterface
{
+ if (self::$developerMode) {
+ return $this->gotoNextStep('showLicense');
+ }
+
return new HtmlResponse(
WCF::getTPL()->fetchStream(
'stepSelectSetupLanguage',
*/
protected function showLicense(): ResponseInterface
{
+ if (self::$developerMode) {
+ return $this->gotoNextStep('showSystemRequirements');
+ }
+
$missingAcception = false;
if (isset($_POST['send'])) {