From 132529c0ffb23ba3f1e2a1976174d47115718ba0 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Sat, 1 Nov 2014 15:53:32 +1100 Subject: [PATCH] Fixes #740 - Use getenv() instead of $_SERVER --- bootstrap/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/start.php b/bootstrap/start.php index 077053b6d..cd963024c 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -25,7 +25,7 @@ $app = new Illuminate\Foundation\Application; */ $env = $app->detectEnvironment(function () { - return isset($_SERVER['CMS_ENV']) ? $_SERVER['CMS_ENV'] : 'production'; + return getenv('CMS_ENV') ?: 'production'; }); /*