Fixed problems with sessions.
This commit is contained in:
parent
697dd92c74
commit
58bc7e9278
|
@ -112,6 +112,9 @@ require_once ($ownDir. 'functions_config.php');
|
||||||
// We need a timezone BEFORE calling config_process_config.
|
// We need a timezone BEFORE calling config_process_config.
|
||||||
// If not we will get ugly warnings. Set Europe/Madrid by default
|
// If not we will get ugly warnings. Set Europe/Madrid by default
|
||||||
// Later will be replaced by the good one.
|
// Later will be replaced by the good one.
|
||||||
|
if (!isset($config["homeurl_static"])) {
|
||||||
|
$config["homeurl_static"] = $config["homeurl"];
|
||||||
|
}
|
||||||
|
|
||||||
date_default_timezone_set("Europe/Madrid");
|
date_default_timezone_set("Europe/Madrid");
|
||||||
|
|
||||||
|
@ -124,11 +127,6 @@ if(session_id() == '') {
|
||||||
$resultado = session_start();
|
$resultado = session_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!isset($config["homeurl_static"])) {
|
|
||||||
$config["homeurl_static"] = $config["homeurl"];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set a the system timezone default
|
// Set a the system timezone default
|
||||||
if ((!isset($config["timezone"])) OR ($config["timezone"] == "")) {
|
if ((!isset($config["timezone"])) OR ($config["timezone"] == "")) {
|
||||||
$config["timezone"] = "Europe/Berlin";
|
$config["timezone"] = "Europe/Berlin";
|
||||||
|
|
Loading…
Reference in New Issue