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

This commit is contained in:
enriquecd 2017-05-11 15:44:18 +02:00
parent 31bc5e08a1
commit 12dde46552
2 changed files with 12 additions and 13 deletions

View File

@ -424,7 +424,6 @@ html_print_div(array('id' => 'forced_title_layer', 'class' => 'forced_title_laye
draggable: false,
modal: true,
width: 600,
height: 250,
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");