Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(install): backward comaptibility of prerequisite checks
Browse files Browse the repository at this point in the history
fix #145
  • Loading branch information
btry authored and ajsb85 committed Nov 2, 2017
1 parent f1c27a7 commit 11e67b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ function plugin_flyvemdm_check_prerequisites() {
echo "Run composer install --no-dev in the plugin directory<br>";
$prerequisitesSuccess = false;
}

if (version_compare(GLPI_VERSION, PLUGIN_FLYVEMDM_GLPI_MIN_VERSION, 'lt') || version_compare(GLPI_VERSION, PLUGIN_FLYVEMDM_GLPI_MAX_VERSION, 'ge')) {
echo "This plugin requires GLPi >= " . PLUGIN_FLYVEMDM_GLPI_MIN_VERSION . " and GLPI < " . PLUGIN_FLYVEMDM_GLPI_MAX_VERSION . "<br>";
$prerequisitesSuccess = false;
}

return $prerequisitesSuccess;
}

Expand Down

0 comments on commit 11e67b1

Please sign in to comment.