Merge branch '825-La-pantalla-de-login-con-mysql-parado/no-configurado-no-se-ve-correctamente' into 'develop'

Change load order of homeurl when load config, fix mysql login error dialog - #825

See merge request !461
This commit is contained in:
vgilc 2017-05-18 15:29:01 +02:00
commit c10df32cf8
2 changed files with 12 additions and 13 deletions

View File

@ -431,7 +431,6 @@ html_print_div(array('id' => 'forced_title_layer', 'class' => 'forced_title_laye
draggable: false,
modal: true,
width: 600,
height: 280,
overlay: {
opacity: 0.5,
background: "black"

View File

@ -110,18 +110,6 @@ require_once ($ownDir . 'constants.php');
require_once ($ownDir . 'functions_db.php');
require_once ($ownDir . 'functions.php');
db_select_engine();
$config['dbconnection'] = db_connect();
if (! defined ('EXTENSIONS_DIR'))
define ('EXTENSIONS_DIR', 'extensions');
if (! defined ('ENTERPRISE_DIR'))
define ('ENTERPRISE_DIR', 'enterprise');
require_once ($ownDir. 'functions_config.php');
// We need a timezone BEFORE calling config_process_config.
// If not we will get ugly warnings. Set Europe/Madrid by default
// Later will be replaced by the good one.
@ -153,6 +141,18 @@ else{
}
}
db_select_engine();
$config['dbconnection'] = db_connect();
if (! defined ('EXTENSIONS_DIR'))
define ('EXTENSIONS_DIR', 'extensions');
if (! defined ('ENTERPRISE_DIR'))
define ('ENTERPRISE_DIR', 'enterprise');
require_once ($ownDir. 'functions_config.php');
date_default_timezone_set("Europe/Madrid");