Skip to content

Commit

Permalink
Merge pull request #17 from iumio/1.0
Browse files Browse the repository at this point in the history
Update FrameworkEnvironment.php
  • Loading branch information
danyRafina committed Jul 24, 2018
2 parents c5ccc3b + 925bb6a commit d6a4b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Requirement/Environment/FrameworkEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static function hostAllowed():int
throw new Server500(new ArrayObject(array("explain" => "An error was detected on environment declaration",
"solution" => "Please check the environment declaration.", "external" => "yes")));
}
$host_env = FEnv::get((FEnv::get("framework.env"))?
$host_env = FEnv::get(("dev" === FEnv::get("framework.env"))?
"framework.config.hosts.dev.file" : "framework.config.hosts.prod.file");
$hosts = file_get_contents($host_env);

Expand Down

0 comments on commit d6a4b98

Please sign in to comment.