public static function getInstance() { static $instance = null; if (!$instance) { $instance = new KunenaConfig(); $instance->load(); } return $instance; }
/** * @return KunenaConfig|mixed */ public static function getInstance() { static $instance = null; if (!$instance) { // @var JCache|JCacheController $cache $cache = JFactory::getCache('com_kunena', 'output'); $instance = $cache->get('configuration', 'com_kunena'); if (!$instance) { $instance = new KunenaConfig(); $instance->load(); } $cache->store($instance, 'configuration', 'com_kunena'); } return $instance; }