mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
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:
parent
41bd835be2
commit
8200a7e4e8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user