From 55273c83b2611a020680117bc0ae40c32e101aec Mon Sep 17 00:00:00 2001 From: ischommer Date: Mon, 20 Oct 2008 13:26:30 +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 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@64561 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 196ccd9..eb22dfd 100644 --- a/install.php +++ b/install.php @@ -14,7 +14,7 @@ $usingEnv = false; $envFiles = array('_ss_environment.php', '../_ss_environment.php', '../../_ss_environment.php'); foreach($envFiles as $envFile) { if(@file_exists($envFile)) { - include($envFile); + include_once($envFile); $usingEnv = true; break; }