Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions front/computermodel.form.php

This file was deleted.

53 changes: 0 additions & 53 deletions front/computertype.form.php

This file was deleted.

54 changes: 0 additions & 54 deletions front/monitormodel.form.php

This file was deleted.

53 changes: 0 additions & 53 deletions front/monitortype.form.php

This file was deleted.

54 changes: 0 additions & 54 deletions front/networkequipmentmodel.form.php

This file was deleted.

53 changes: 0 additions & 53 deletions front/networkequipmenttype.form.php

This file was deleted.

15 changes: 13 additions & 2 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,21 @@
// Schema version of this version (major.minor.bugfix)
define('PLUGIN_CARBON_SCHEMA_VERSION', '1.3.0');

// Version compatibility check -- from GLPI developer documentation
// > A bug in GLPI prior to 11.0.7 caused plugin routes with method constraints other than GET to never match.
// > The router context was always evaluated as GET, so any route declared with only POST, PUT, DELETE, PATCH, etc.
// > would never be found.
//
// > This bug was fixed in GLPI 11.0.7. If your plugin needs to support GLPI < 11.0.7, use the following workaround:
// > include GET alongside the intended methods and check the actual method manually inside the controller.
//
// For now, there is no such controller, then compatibility with GLPI 11.0.0 is still OK.
// Watch it when adding new controllers.

// Minimal GLPI version, inclusive
define("PLUGIN_CARBON_MIN_GLPI_VERSION", '11.0.0');
define('PLUGIN_CARBON_MIN_GLPI_VERSION', '11.0.0');
// Maximum GLPI version, exclusive
define("PLUGIN_CARBON_MAX_GLPI_VERSION", '12.0.0');
define('PLUGIN_CARBON_MAX_GLPI_VERSION', '12.0.0');

define('PLUGIN_CARBON_DECIMALS', 3);

Expand Down