From 23c79a031739051357649dbeee0f3a7ef9865034 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 20 Oct 2011 21:47:20 -0500 Subject: [PATCH] only define environment constant if it hasnt already been defined. --- laravel/bootstrap/constants.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/laravel/bootstrap/constants.php b/laravel/bootstrap/constants.php index e2364d7e..9c6b4446 100644 --- a/laravel/bootstrap/constants.php +++ b/laravel/bootstrap/constants.php @@ -56,8 +56,6 @@ function constants($constants) constants($constants); -unset($constants); - /** * Set the Laravel environment configuration path constant. * The environment is controlled by setting an environment @@ -65,6 +63,6 @@ function constants($constants) */ $environment = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'] : ''; -define('ENV_CONFIG_PATH', $environment); +constants(array('ENV_CONFIG_PATH' => $environment)); -unset($environment); \ No newline at end of file +unset($constants, $environment); \ No newline at end of file