function __construct() { // If the cookie is a not standard name, set it now $config = JFactory::getConfig(); if ($cookie = $config->get('lgCookie', false)) { self::$cookie = $cookie; } $domain = $config->get('lgCookieDomain', ''); lgDebug("Using cookie \"" . self::$cookie . "\" with domain \"{$domain}\""); // Make singleton available if we need it self::$instance = $this; // If this is an SSO token request and this is the master site, return the key if (LigminchaGlobalServer::getCurrent()->isMaster && array_key_exists(self::$cmd, $_REQUEST)) { self::setCookie($_REQUEST[self::$cmd]); exit; } }