Permalink
Browse files

Merge pull request #17 from iumio/1.0

Update FrameworkEnvironment.php
  • Loading branch information...
danyRafina committed Jul 24, 2018
2 parents c5ccc3b + 925bb6a commit d6a4b985936e437f65e71e1c80519d1ea8a29f14
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/Requirement/Environment/FrameworkEnvironment.php
@@ -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);

0 comments on commit d6a4b98

Please sign in to comment.