Skip to content

Commit

Permalink
Check if ENVIRONMENT is defined
Browse files Browse the repository at this point in the history
Fixes agungjk#2
  • Loading branch information
petehalverson committed Dec 16, 2017
1 parent bad795d commit 4b378b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/dotenv/Dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Dotenv

public function __construct($path, $file = '.env')
{
if ($file == '.env') {
if ($file == '.env' && defined(ENVIRONMENT)) {
$file = '.env.' . strtolower(ENVIRONMENT);
}
$this->filePath = $this->getFilePath($path, $file);
Expand Down

0 comments on commit 4b378b5

Please sign in to comment.