MINOR Allow checking for a specific IIS version (parameter to InstallRequirements::isIIS())

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@108570 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sharvey 2010-07-27 05:15:57 +00:00 committed by Sam Minnee
parent e03e0c1d60
commit b4bc50d9cc

View File

@ -276,8 +276,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;
@ -311,7 +311,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()));