From b0d11f1693357b347900979ceb69df4e8c165aac Mon Sep 17 00:00:00 2001 From: sminnee Date: Fri, 15 Oct 2010 01:14:53 +0000 Subject: [PATCH] ENHANCEMENT Added variable for the server configuration file so the config-form can display it for the installation (from r105028) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112390 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.php b/install.php index 2e4b4b4..5e5ec00 100644 --- a/install.php +++ b/install.php @@ -158,6 +158,13 @@ if(file_exists('sapphire/silverstripe_version')) { $req = new InstallRequirements(); $req->check(); +$webserverConfigFile = ''; +if($req->isIIS()) { + $webserverConfigFile = 'web.config'; +} else { + $webserverConfigFile = '.htaccess'; +} + if($req->hasErrors()) { $hasErrorOtherThanDatabase = true; }