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:
parent
608fcbcb69
commit
e20986c4ba
1 changed files with 3 additions and 0 deletions
|
@ -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>");
|
||||
|
|
Loading…
Add table
Reference in a new issue