From e20986c4ba0f28d492b5252c892e3bf328dfea8b Mon Sep 17 00:00:00 2001 From: fabianwolf Date: Thu, 10 Mar 2016 22:43:22 +0100 Subject: [PATCH] Fix Mysql Validation on Install Bug This fixes a bug, where a php error is thrown because the mysql connection is checked even no credentials have been set on install --- Core/Frameworks/Flake/Framework.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/Frameworks/Flake/Framework.php b/Core/Frameworks/Flake/Framework.php index 98781f5..46c1ad1 100644 --- a/Core/Frameworks/Flake/Framework.php +++ b/Core/Frameworks/Flake/Framework.php @@ -257,6 +257,9 @@ class Framework extends \Flake\Core\Framework { } protected static function initDbMysql() { + if(defined("BAIKAL_CONTEXT_INSTALL")){ + return TRUE; + } if(!defined("PROJECT_DB_MYSQL_HOST")) { die("

The constant PROJECT_DB_MYSQL_HOST, containing the MySQL host name, is not set.
You should set it in Specific/config.system.php

");