BUGFIX: fixed inclusion of environment file when document root is the web root

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@107585 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2010-07-07 01:33:53 +00:00 committed by Sam Minnee
parent b23c650c8a
commit ce7cf0113c

View File

@ -1,4 +1,4 @@
<?php
<?php
/**
* This file is the Sapphire bootstrap. It will get your environment ready to call Director::direct().
*
@ -40,7 +40,7 @@ if (!function_exists('array_fill_keys')) {
/**
* Include _ss_environment.php files
*/
$envFiles = array('../_ss_environment.php', '../../_ss_environment.php', '../../../_ss_environment.php');
$envFiles = array('_ss_environment.php', '../_ss_environment.php', '../../_ss_environment.php', '../../../_ss_environment.php');
foreach($envFiles as $envFile) {
if(@file_exists($envFile)) {
define('SS_ENVIRONMENT_FILE', $envFile);