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
This commit is contained in:
sharvey 2010-02-10 05:06:32 +00:00 committed by Sam Minnee
parent 41bd835be2
commit 8200a7e4e8

View File

@ -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;
}