diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-12-13 07:59:58 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-12-13 07:59:58 +0400 |
commit | e485581185414ef986b2f914303f221e4949954a (patch) | |
tree | 6e7903322e88c4b414a03702620db80e398d90b8 | |
parent | bbc6dc42085cc0c2b5ed1e6c034d3dee44bb5246 (diff) |
Hide treemap menu if plugin is disabled (auto loader still finds the class)
-rw-r--r-- | plugins/ExampleUI/ExampleUI.php | 2 |
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); } } |