diff --git a/src/plugins/system/weblinks/weblinks.php b/src/plugins/system/weblinks/weblinks.php index 7f2ea59..27e5da4 100644 --- a/src/plugins/system/weblinks/weblinks.php +++ b/src/plugins/system/weblinks/weblinks.php @@ -24,6 +24,17 @@ class PlgSystemWeblinks extends JPlugin */ protected $autoloadLanguage = true; + /** + * Supported Extensions + * + * @var array + * @since __DEPLOY_VERSION__ + */ + private $supportedExtensions = array( + 'mod_stats', + 'mod_stats_admin', + ); + /** * Method to add statistics information to Administrator control panel. * @@ -35,6 +46,11 @@ class PlgSystemWeblinks extends JPlugin */ public function onGetStats($extension) { + if (!in_array($extension, $this->supportedExtensions)) + { + return array(); + } + if (!JComponentHelper::isEnabled('com_weblinks')) { return array();