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