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
This commit is contained in:
fabianwolf 2016-03-10 22:43:22 +01:00
parent 608fcbcb69
commit e20986c4ba

View file

@ -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("<h3>The constant PROJECT_DB_MYSQL_HOST, containing the MySQL host name, is not set.<br />You should set it in Specific/config.system.php</h3>");