Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29b1fa0

Browse files
Update installer with changes similar to PR #300 to avoid PHP session warnings in some environments
Co-authored-by: poljpocket <[email protected]>
1 parent 8702840 commit 29b1fa0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

install.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ public function execute() {
9898
// these two vars used by install-head.inc
9999
$title = "ProcessWire " . PROCESSWIRE_INSTALL . " Installer";
100100
$formAction = "./install.php";
101-
102-
require("./wire/modules/AdminTheme/AdminThemeUikit/install-head.inc");
103-
104101
$step = $this->post('step');
105102

103+
if($step === '5') require('./index.php');
104+
105+
require("./wire/modules/AdminTheme/AdminThemeUikit/install-head.inc");
106+
106107
if($step === null) {
107108
$this->welcome();
108109
} else {
@@ -112,7 +113,7 @@ public function execute() {
112113
case 1: $this->compatibilityCheck(); break;
113114
case 2: $this->dbConfig(); break;
114115
case 4: $this->dbSaveConfig(); break;
115-
case 5: require("./index.php");
116+
case 5:
116117
/** @var ProcessWire $wire */
117118
$wire->modules->refresh();
118119
$this->adminAccountSave($wire);

0 commit comments

Comments
 (0)