From 2c774adbde986fc2019662f8f44865eea48a76c9 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 25 Jul 2011 22:16:20 -0500 Subject: [PATCH] check for $_SERVER instead of $_ENV LARAVEL_ENV. --- system/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/config.php b/system/config.php index f4c3f291..ec459195 100644 --- a/system/config.php +++ b/system/config.php @@ -100,7 +100,7 @@ class Config { */ public static function load($file) { - $directory = (isset($_ENV['LARAVEL_ENV'])) ? $_ENV['LARAVEL_ENV'].'/' : ''; + $directory = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'].'/' : ''; if ( ! array_key_exists($file, static::$items) and file_exists($path = APP_PATH.'config/'.$directory.$file.EXT)) {