diff options
Diffstat (limited to 'plugins/ExampleUI/ExampleUI.php')
-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); } } |