Permalink
Browse files

Update FrameworkEnvironment.php

  • Loading branch information...
danyRafina committed Jul 24, 2018
1 parent 12e1da6 commit 925bb6abc03e021c7a35ba599fb3633ffb8ff41a
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 925bb6a

Please sign in to comment.