mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Regression due to previous patch
Fixing installer regression due to patch #1972
This commit is contained in:
parent
bc9567c9ef
commit
ac989cc3c0
@ -31,6 +31,8 @@ if (function_exists('session_start')) {
|
||||
/**
|
||||
* Include _ss_environment.php file
|
||||
*/
|
||||
$usingEnv = false;
|
||||
$envFileExists = false;
|
||||
//define the name of the environment file
|
||||
$envFile = '_ss_environment.php';
|
||||
//define the dirs to start scanning from (have to add the trailing slash)
|
||||
@ -53,8 +55,10 @@ foreach ($dirsToCheck as $dir) {
|
||||
if (@is_readable($dir)) {
|
||||
//if the file exists, then we include it, set relevant vars and break out
|
||||
if (file_exists($dir . $envFile)) {
|
||||
define('SS_ENVIRONMENT_FILE', $dir . $envFile);
|
||||
include_once(SS_ENVIRONMENT_FILE);
|
||||
include_once($dir . $envFile);
|
||||
$envFileExists = true;
|
||||
//legacy variable assignment
|
||||
$usingEnv = true;
|
||||
//break out of BOTH loops because we found the $envFile
|
||||
break(2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user