From 2a718efd7663de311d8285a835951840efc546dc Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Wed, 11 Feb 2015 06:22:58 +1000 Subject: [PATCH] Add missing PR files --- modules/system/controllers/Updates.php | 1 + modules/system/controllers/updates/index.htm | 6 +++++- modules/system/models/PluginVersion.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index 55d6d48a4..b1401c070 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -52,6 +52,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 460f79731..abe69f380 100644 --- a/modules/system/models/PluginVersion.php +++ b/modules/system/models/PluginVersion.php @@ -82,7 +82,7 @@ class PluginVersion extends Model * @param $query * @return mixed */ - public function scopeEnabled($query) + public function scopeIsEnabled($query) { return $query->where('is_disabled', '!=', 1); }