function getLiveSite() { if ($this->liveSiteCached) { return $this->liveSiteCached; } if (!defined('EXTRAWATCH_LIVE_SITE')) { $liveSite = ExtraWatchConfig::replaceHttpByHttps($this->getConfigValue('EXTRAWATCH_LIVE_SITE')); $this->liveSiteCached = $liveSite; return $liveSite; } else { $liveSite = ExtraWatchConfig::replaceHttpByHttps(rtrim(constant('EXTRAWATCH_LIVE_SITE'))); $this->liveSiteCached = $liveSite; return $liveSite; } }