Reintroduce checking against original php.ini values.

Seems to have been accidentally removed in 806ffb934e

Fixes https://github.com/silverstripe/silverstripe-installer/issues/211
This commit is contained in:
Sil3ntStorm 2017-11-26 01:36:40 +01:00
parent 07a0f75426
commit 0b879d690a
No known key found for this signature in database
GPG Key ID: 920245894F10AD1A
2 changed files with 3 additions and 2 deletions

View File

@ -227,8 +227,9 @@ class InstallRequirements
/**
* Check everything except the database
*/
public function check()
public function check($originalIni)
{
$this->originalIni = $originalIni;
$this->errors = [];
$isApache = $this->isApache();
$isIIS = $this->isIIS();

View File

@ -66,7 +66,7 @@ $theme = $config->getTheme($_REQUEST);
// Check requirements
$req = new InstallRequirements();
$req->check();
$req->check($originalIni);
if ($req->isIIS()) {
$webserverConfigFile = 'web.config';