BUGFIX: fixed inclusion of environment file when document root is the web root (from r107585)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112605 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 03:54:12 +00:00
parent 1c54a6dc77
commit d794381e98

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);