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:
authormattab <matthieu.aubry@gmail.com>2013-12-13 07:59:58 +0400
committermattab <matthieu.aubry@gmail.com>2013-12-13 07:59:58 +0400
commite485581185414ef986b2f914303f221e4949954a (patch)
tree6e7903322e88c4b414a03702620db80e398d90b8 /plugins/ExampleUI
parentbbc6dc42085cc0c2b5ed1e6c034d3dee44bb5246 (diff)
Hide treemap menu if plugin is disabled (auto loader still finds the class)
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r--plugins/ExampleUI/ExampleUI.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ExampleUI/ExampleUI.php b/plugins/ExampleUI/ExampleUI.php
index 11b567c00e..b5987898c8 100644
--- a/plugins/ExampleUI/ExampleUI.php
+++ b/plugins/ExampleUI/ExampleUI.php
@@ -40,7 +40,7 @@ class ExampleUI extends \Piwik\Plugin
$this->addSubMenu('Sparklines', 'sparklines', 5);
$this->addSubMenu('Evolution Graph', 'evolutionGraph', 6);
- if (class_exists("Piwik\\Plugins\\TreemapVisualization\\Treemap")) {
+ if (\Piwik\Plugin\Manager::getInstance()->isPluginActivated('TreemapVisualization')) {
$this->addSubMenu('Treemap', 'treemap', 7);
}
}