From 482955914d3c2f8b0b8df798e1f85cf79b777c9a Mon Sep 17 00:00:00 2001 From: btry Date: Mon, 29 Aug 2016 21:02:32 +0200 Subject: [PATCH] fix proposal for #7 --- setup.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.php b/setup.php index f70f091..6f4ec06 100755 --- a/setup.php +++ b/setup.php @@ -60,8 +60,10 @@ function plugin_init_example() { Plugin::registerClass('PluginExampleDeviceCamera', array('device_types' => true)); - if (class_exists('PluginExampleExample')) { - Link::registerTag(PluginExampleExample::$tags); + if (version_compare(GLPI_VERSION,'9.1','ge')) { + if (class_exists('PluginExampleExample')) { + Link::registerTag(PluginExampleExample::$tags); + } } // Display a menu entry ? $_SESSION["glpi_plugin_example_profile"]['example'] = 'w';