Skip to content
Snippets Groups Projects
Commit 453e8152 authored by Peter Rotich's avatar Peter Rotich
Browse files

Lazy load $ost Config

parent 7a503b7f
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,6 @@ class osTicket {
if (!defined('DISABLE_SESSION') || !DISABLE_SESSION)
$this->session = osTicketSession::start(SESSION_TTL); // start DB based session
$this->config = new OsticketConfig();
$this->csrf = new CSRF('__CSRFToken__');
......@@ -85,6 +84,9 @@ class osTicket {
}
function getConfig() {
if (!isset($this->config))
$this->config = new OsticketConfig();
return $this->config;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment