diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index ccb49ba99..6b504cc72 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -51,6 +51,7 @@ class Updates extends Controller $this->vars['projectId'] = Parameters::get('system::project.id'); $this->vars['projectName'] = Parameters::get('system::project.name'); $this->vars['projectOwner'] = Parameters::get('system::project.owner'); + $this->vars['pluginsActiveCount'] = PluginVersion::isEnabled()->count(); $this->vars['pluginsCount'] = PluginVersion::count(); return $this->asExtension('ListController')->index(); } diff --git a/modules/system/controllers/updates/index.htm b/modules/system/controllers/updates/index.htm index 9f871980c..d75660e09 100644 --- a/modules/system/controllers/updates/index.htm +++ b/modules/system/controllers/updates/index.htm @@ -32,7 +32,11 @@

-

+ +

+ +

+
diff --git a/modules/system/models/PluginVersion.php b/modules/system/models/PluginVersion.php index 21045996c..abe69f380 100644 --- a/modules/system/models/PluginVersion.php +++ b/modules/system/models/PluginVersion.php @@ -77,6 +77,16 @@ class PluginVersion extends Model } + /** + * Only include enabled plugins + * @param $query + * @return mixed + */ + public function scopeIsEnabled($query) + { + return $query->where('is_disabled', '!=', 1); + } + /** * Returns the current version for a plugin * @param string $pluginCode Plugin code. Eg: Acme.Blog