diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 2ae53a42ab..4b98303fe1 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -112,6 +112,9 @@ 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. +if (!isset($config["homeurl_static"])) { + $config["homeurl_static"] = $config["homeurl"]; +} date_default_timezone_set("Europe/Madrid"); @@ -124,11 +127,6 @@ if(session_id() == '') { $resultado = session_start(); } - -if (!isset($config["homeurl_static"])) { - $config["homeurl_static"] = $config["homeurl"]; -} - // Set a the system timezone default if ((!isset($config["timezone"])) OR ($config["timezone"] == "")) { $config["timezone"] = "Europe/Berlin";