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';