mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
usePlugin() => Plugin::load()
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@127 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
1f221efc07
commit
3735a9a2b7
@ -37,13 +37,13 @@
|
|||||||
//header("Location:../../central.php");
|
//header("Location:../../central.php");
|
||||||
|
|
||||||
// Entry menu case
|
// Entry menu case
|
||||||
define('GLPI_ROOT', '../..');
|
define('GLPI_ROOT', '../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
checkRight("config","w");
|
checkRight("config","w");
|
||||||
|
|
||||||
// To be available when plugin in not activated
|
// To be available when plugin in not activated
|
||||||
usePLugin('example');
|
Plugin::load('example');
|
||||||
|
|
||||||
commonHeader("TITRE",$_SERVER['PHP_SELF'],"config","plugins");
|
commonHeader("TITRE",$_SERVER['PHP_SELF'],"config","plugins");
|
||||||
echo "This is the plugin config page<br>";
|
echo "This is the plugin config page<br>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user