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:
remicollet 2010-02-23 14:46:27 +00:00
parent f795f9e3f5
commit b218f3ff0d
2 changed files with 5 additions and 4 deletions

View File

@ -42,7 +42,8 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
helpHeader("TITRE", $_SERVER['PHP_SELF']); helpHeader("TITRE", $_SERVER['PHP_SELF']);
} }
checkTypeRight('PluginExampleExample',"r");
//checkTypeRight('PluginExampleExample',"r");
Search::show('PluginExampleExample'); Search::show('PluginExampleExample');

View File

@ -148,17 +148,17 @@ function plugin_version_example() {
'version' => '0.2.0', 'version' => '0.2.0',
'author' => 'Julien Dombre', 'author' => 'Julien Dombre',
'homepage' => 'https://forge.indepnet.net/projects/show/example', '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 // Optional : check prerequisites before install : may print errors or add to message after redirect
function plugin_example_check_prerequisites() { function plugin_example_check_prerequisites() {
if (GLPI_VERSION >= 0.80) { if (GLPI_VERSION >= 0.78) {
return true; return true;
} else { } else {
echo "GLPI version not compatible need 0.80"; echo "GLPI version not compatible need 0.78";
} }
} }