mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
back to 0.78
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@139 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
f795f9e3f5
commit
b218f3ff0d
@ -42,7 +42,8 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
|
||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||
}
|
||||
|
||||
checkTypeRight('PluginExampleExample',"r");
|
||||
|
||||
//checkTypeRight('PluginExampleExample',"r");
|
||||
|
||||
Search::show('PluginExampleExample');
|
||||
|
||||
|
@ -148,17 +148,17 @@ function plugin_version_example() {
|
||||
'version' => '0.2.0',
|
||||
'author' => 'Julien Dombre',
|
||||
'homepage' => 'https://forge.indepnet.net/projects/show/example',
|
||||
'minGlpiVersion' => '0.80');// For compatibility / no install in version < 0.72
|
||||
'minGlpiVersion' => '0.78');// For compatibility / no install in version < 0.72
|
||||
}
|
||||
|
||||
|
||||
// Optional : check prerequisites before install : may print errors or add to message after redirect
|
||||
function plugin_example_check_prerequisites() {
|
||||
|
||||
if (GLPI_VERSION >= 0.80) {
|
||||
if (GLPI_VERSION >= 0.78) {
|
||||
return true;
|
||||
} else {
|
||||
echo "GLPI version not compatible need 0.80";
|
||||
echo "GLPI version not compatible need 0.78";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user