Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2017-02-21 13:27:13 +0300
committerGitHub <noreply@github.com>2017-02-21 13:27:13 +0300
commit64416dc79f47c7f3fb4d1387c85ad7d78d01abc1 (patch)
tree912f23bd9be257962f16c1303014eed1961de856 /core/Plugin/Manager.php
parent7522132d4e8e6200531c09bcd6ed384071b56610 (diff)
Make activated plugins count in Admin widget correct (#11377)
* Do not count always activated plugins. Fixes #11144 * UI test: Fixed count of activated plugins
Diffstat (limited to 'core/Plugin/Manager.php')
-rw-r--r--core/Plugin/Manager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php
index 9cf941a135..b1e97f7f8b 100644
--- a/core/Plugin/Manager.php
+++ b/core/Plugin/Manager.php
@@ -554,13 +554,14 @@ class Manager
throw new \Exception('Theme not found : ' . $themeName);
}
- public function getNumberOfActivatedPlugins()
+ public function getNumberOfActivatedPluginsExcludingAlwaysActivated()
{
$counter = 0;
$pluginNames = $this->getLoadedPluginsName();
foreach ($pluginNames as $pluginName) {
- if ($this->isPluginActivated($pluginName)) {
+ if ($this->isPluginActivated($pluginName)
+ && !$this->isPluginAlwaysActivated($pluginName)) {
$counter++;
}
}