diff --git a/plugins/system/stats/stats.php b/plugins/system/stats/stats.php index 501e31f844eff..8317158058355 100644 --- a/plugins/system/stats/stats.php +++ b/plugins/system/stats/stats.php @@ -97,6 +97,12 @@ public function onAfterInitialise() // Load plugin language files only when needed (ex: they are not needed in site client). $this->loadLanguage(); + // Only to com_cpanel + if ($this->app->input->get('option', 'com_cpanel') !== 'com_cpanel') + { + return; + } + JHtml::_('jquery.framework'); JHtml::_('script', 'plg_system_stats/stats.js', array('version' => 'auto', 'relative' => true)); }