From 925bb6abc03e021c7a35ba599fb3633ffb8ff41a Mon Sep 17 00:00:00 2001 From: Dany Rafina Date: Wed, 25 Jul 2018 00:10:18 +0200 Subject: [PATCH] Update FrameworkEnvironment.php --- Core/Requirement/Environment/FrameworkEnvironment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Requirement/Environment/FrameworkEnvironment.php b/Core/Requirement/Environment/FrameworkEnvironment.php index 631dad0..fb3545c 100644 --- a/Core/Requirement/Environment/FrameworkEnvironment.php +++ b/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);