mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
MINOR Allow checking for a specific IIS version (parameter to InstallRequirements::isIIS()) (from r108570)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112411 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
83567dccdd
commit
7a2fce3458
@ -287,8 +287,8 @@ class InstallRequirements {
|
||||
* Check if the web server is IIS.
|
||||
* @return boolean
|
||||
*/
|
||||
function isIIS() {
|
||||
if(strpos($this->findWebserver(), 'IIS/7') !== false) {
|
||||
function isIIS($version = 7) {
|
||||
if(strpos($this->findWebserver(), 'IIS/' . $version) !== false) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -322,7 +322,7 @@ class InstallRequirements {
|
||||
function check() {
|
||||
$this->errors = null;
|
||||
$isApache = $this->isApache();
|
||||
$isIIS = $this->isIIS();
|
||||
$isIIS = $this->isIIS(7);
|
||||
$webserver = $this->findWebserver();
|
||||
|
||||
$this->requirePHPVersion('5.2.0', '5.1.0', array("PHP Configuration", "PHP5 installed", null, "PHP version " . phpversion()));
|
||||
|
Loading…
Reference in New Issue
Block a user