mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
fix proposal for #7
This commit is contained in:
parent
5046de969e
commit
482955914d
@ -60,9 +60,11 @@ function plugin_init_example() {
|
||||
Plugin::registerClass('PluginExampleDeviceCamera',
|
||||
array('device_types' => true));
|
||||
|
||||
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';
|
||||
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook
|
||||
|
Loading…
x
Reference in New Issue
Block a user