From a51d7184a39c7593b037dbb6a582a50788eb98f1 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 20 Oct 2008 13:26:52 +0000 Subject: [PATCH] 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 --- core/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Core.php b/core/Core.php index 2ba872b89..68efc67d0 100755 --- a/core/Core.php +++ b/core/Core.php @@ -29,7 +29,7 @@ error_reporting(E_ALL); $envFiles = array('../_ss_environment.php', '../../_ss_environment.php', '../../../_ss_environment.php'); foreach($envFiles as $envFile) { if(file_exists($envFile)) { - include($envFile); + include_once($envFile); break; } }