Skip to content
Snippets Groups Projects
Commit ddde34b0 authored by JediKev's avatar JediKev
Browse files

issue: Revert 453e8152

This addresses an issue where upgrading from v1.6 to a release on or after
v1.12 will hang on login and eventually timeout. This is due to the system
not being able to fetch the config which logs a db error which calls the
config and continues the loop. For now, we need the config in the
constructor so that the loop doesn't occur and we can continue to upgrade as
normal.

TODO:
- For a permanent fix, we need to figure out why the loop occurs when not in
the constructor and vice versa.
parent cbe75db4
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,7 @@ class osTicket { ...@@ -59,6 +59,7 @@ class osTicket {
if (!defined('DISABLE_SESSION') || !DISABLE_SESSION) if (!defined('DISABLE_SESSION') || !DISABLE_SESSION)
$this->session = osTicketSession::start(SESSION_TTL); // start DB based session $this->session = osTicketSession::start(SESSION_TTL); // start DB based session
$this->config = new OsticketConfig();
$this->csrf = new CSRF('__CSRFToken__'); $this->csrf = new CSRF('__CSRFToken__');
...@@ -84,9 +85,6 @@ class osTicket { ...@@ -84,9 +85,6 @@ class osTicket {
} }
function getConfig() { function getConfig() {
if (!isset($this->config))
$this->config = new OsticketConfig();
return $this->config; return $this->config;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment