Fixes #740 - Use getenv() instead of $_SERVER

This commit is contained in:
Sam Georges 2014-11-01 15:53:32 +11:00
parent 7d4ebbc24d
commit 132529c0ff
1 changed files with 1 additions and 1 deletions

View File

@ -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';
});
/*