1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +02:00

Update installer with changes similar to PR #300 to avoid PHP session warnings in some environments

Co-authored-by: poljpocket <mail@poljpocket.com>
This commit is contained in:
Ryan Cramer
2025-01-08 10:50:47 -05:00
parent 870284072c
commit 29b1fa0e45

View File

@@ -98,11 +98,12 @@ class Installer {
// these two vars used by install-head.inc
$title = "ProcessWire " . PROCESSWIRE_INSTALL . " Installer";
$formAction = "./install.php";
$step = $this->post('step');
if($step === '5') require('./index.php');
require("./wire/modules/AdminTheme/AdminThemeUikit/install-head.inc");
$step = $this->post('step');
if($step === null) {
$this->welcome();
} else {
@@ -112,7 +113,7 @@ class Installer {
case 1: $this->compatibilityCheck(); break;
case 2: $this->dbConfig(); break;
case 4: $this->dbSaveConfig(); break;
case 5: require("./index.php");
case 5:
/** @var ProcessWire $wire */
$wire->modules->refresh();
$this->adminAccountSave($wire);