Skip to content

Commit 9a1339a

Browse files
committed
fix(installer): Reflect minimum required PHP version from official pw repo
1 parent 9481cce commit 9a1339a

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ phpunit.xml
1414
ProcessWire
1515
Tests/processwire.zip
1616

17+
Tests/pw

src/Helpers/Installer.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Installer {
5050
* Minimum required PHP version to install ProcessWire
5151
*
5252
*/
53-
const MIN_REQUIRED_PHP_VERSION = '7.4.0';
53+
const MIN_REQUIRED_PHP_VERSION = '5.3.8';
5454

5555
/**
5656
* Test mode for installer development, non destructive
@@ -62,7 +62,7 @@ class Installer {
6262
* Default site profile
6363
*
6464
*/
65-
const PROFILE_DEFAULT = 'site-default';
65+
const PROFILE_DEFAULT = 'site-blank';
6666

6767
/**
6868
* File permissions, determined in the dbConfig function
@@ -79,15 +79,6 @@ class Installer {
7979
*/
8080
protected $numErrors = 0;
8181

82-
/**
83-
* Available color themes
84-
*
85-
*/
86-
protected $colors = array(
87-
'classic',
88-
'warm'
89-
);
90-
9182
/**
9283
* @param LoggerInterface $log
9384
*/
@@ -611,14 +602,9 @@ protected function adminAccountSave($accountInfo) {
611602
$adminName = htmlentities($adminName, ENT_QUOTES, "UTF-8");
612603

613604
if ($this->v) $this->log->info("User account saved: <b>{$user->name}</b>");
614-
615-
$colors = $wire->sanitizer->pageName($accountInfo['colors']);
616-
if (!in_array($colors, $this->colors)) $colors = reset($this->colors);
617605
$theme = $wire->modules->getInstall('AdminThemeUikit');
618606
$configData = $wire->modules->getModuleConfigData('AdminThemeUikit');
619-
$configData['colors'] = $colors;
620607
$wire->modules->saveModuleConfigData('AdminThemeUikit', $configData);
621-
if ($this->v) $this->log->info("Saved admin color set <b>$colors</b> - you will see this when you login.");
622608

623609
if ($this->v) $this->log->info("It is recommended that you make <b>/site/config.php</b> non-writable, for security.");
624610

0 commit comments

Comments
 (0)