mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Using include_once() instead of include() for _ss_environment.php in install.php and Core.php to avoid PHP notice errors about double constant defines (see r64561)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64562 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a86e42e5ed
commit
a51d7184a3
@ -29,7 +29,7 @@ error_reporting(E_ALL);
|
|||||||
$envFiles = array('../_ss_environment.php', '../../_ss_environment.php', '../../../_ss_environment.php');
|
$envFiles = array('../_ss_environment.php', '../../_ss_environment.php', '../../../_ss_environment.php');
|
||||||
foreach($envFiles as $envFile) {
|
foreach($envFiles as $envFile) {
|
||||||
if(file_exists($envFile)) {
|
if(file_exists($envFile)) {
|
||||||
include($envFile);
|
include_once($envFile);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user