mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
1c54a6dc77
commit
d794381e98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user