Merge pull request #7641 from Sil3ntStorm/patch/display_errors

Reintroduce checking against original php.ini values.
This commit is contained in:
Damian Mooyman 2017-11-28 17:36:50 +13:00 committed by GitHub
commit 62eb531164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

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

View File

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