supportedExtensions)) { return array(); } if (!ComponentHelper::isEnabled('com_weblinks')) { return array(); } $query = $this->db->getQuery(true) ->select('COUNT(id) AS count_links') ->from('#__weblinks') ->where('state = 1'); $webLinks = $this->db->setQuery($query)->loadResult(); if (!$webLinks) { return array(); } return array(array( 'title' => Text::_('PLG_SYSTEM_WEBLINKS_STATISTICS'), 'icon' => 'out-2', 'data' => $webLinks )); } }