mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Display active plugin count on updates page
This commit is contained in:
parent
99fc380aa3
commit
3dcd718df8
@ -77,6 +77,16 @@ class PluginVersion extends Model
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Only include enabled plugins
|
||||
* @param $query
|
||||
* @return mixed
|
||||
*/
|
||||
public function scopeEnabled($query)
|
||||
{
|
||||
return $query->where('is_disabled', '!=', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current version for a plugin
|
||||
* @param string $pluginCode Plugin code. Eg: Acme.Blog
|
||||
|
Loading…
x
Reference in New Issue
Block a user