Skip to content

Commit

Permalink
Merge branch 'release/2.1.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 22, 2017
2 parents 46401fa + d4d4e6f commit 431a3e4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
5 changes: 4 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
</authors>
<versions>
<version>
<num>2.0.1</num>
<num>2.1.0</version>
<compatibility>9.2</compatibility>
</version>
<version>
<num>2.0.1</num>
<compatibility>9.1.2</compatibility>
</version>
<version>
Expand Down
36 changes: 20 additions & 16 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
--------------------------------------------------------------------------
*/

define ('PLUGIN_TAG_VERSION', '2.0.1');
define ('PLUGIN_TAG_VERSION', '2.1.0');

/**
* Check configuration process
Expand Down Expand Up @@ -110,12 +110,19 @@ function plugin_init_tag() {
* @return array
*/
function plugin_version_tag() {
return array('name' => __('Tag Management', 'tag'),
'version' => PLUGIN_TAG_VERSION,
'author' => '<a href="http://www.teclib.com">Teclib\'</a> - Infotel conseil',
'homepage' => 'https://github.com/pluginsGLPI/tag',
'license' => '<a href="../plugins/tag/LICENSE" target="_blank">GPLv2+</a>',
'minGlpiVersion' => "9.1.2");
return [
'name' => __('Tag Management', 'tag'),
'version' => PLUGIN_TAG_VERSION,
'author' => '<a href="http://www.teclib.com">Teclib\'</a> - Infotel conseil',
'homepage' => 'https://github.com/pluginsGLPI/tag',
'license' => '<a href="../plugins/tag/LICENSE" target="_blank">GPLv2+</a>',
'requirements' => [
'glpi' => [
'min' => '9.2',
'dev' => true
]
]
];
}

/**
Expand All @@ -125,14 +132,11 @@ function plugin_version_tag() {
* @return boolean
*/
function plugin_tag_check_prerequisites() {
if (version_compare(GLPI_VERSION, '9.1.2', 'lt')) {
if (method_exists('Plugin', 'messageIncompatible')) {
echo Plugin::messageIncompatible('core', '9.1.2');
} else {
echo __('This plugin requires GLPI >= 9.1.2');
}
} else {
return true;
$version = rtrim(GLPI_VERSION, '-dev');
if (version_compare($version, '9.2', 'lt')) {
echo "This plugin requires GLPI 9.2";
return false;
}
return false;

return true;
}

0 comments on commit 431a3e4

Please sign in to comment.