From 8200a7e4e8dd38121e141791cbf3becad9de8c9b Mon Sep 17 00:00:00 2001 From: sharvey Date: Wed, 10 Feb 2010 05:06:32 +0000 Subject: [PATCH] BUGFIX Fixed initial state of "use environment" checkbox in installer git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98678 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.php b/install.php index 2c33edb..873cab0 100644 --- a/install.php +++ b/install.php @@ -42,6 +42,11 @@ foreach($envFiles as $envFile) { // This is used by the checkbox to select whether to prefer environment or not $shouldUseEnv = false; + +if(!$_REQUEST) { + $shouldUseEnv = true; +} + if(isset($_REQUEST['useEnv']) && $_REQUEST['useEnv']) { $shouldUseEnv = true; }