mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Change load order of homeurl when load config, fix mysql login error dialog - #825
This commit is contained in:
parent
31bc5e08a1
commit
12dde46552
@ -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"
|
||||
|
@ -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");
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user