Commit 2c774adb authored by Taylor Otwell's avatar Taylor Otwell

check for $_SERVER instead of $_ENV LARAVEL_ENV.

parent c9698df2
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment