mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
clean for autoload
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@112 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
68f5a861bb
commit
f33753092c
@ -34,8 +34,6 @@
|
|||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
$NEEDED_ITEMS = array ('search');
|
|
||||||
|
|
||||||
define('GLPI_ROOT', '../../..');
|
define('GLPI_ROOT', '../../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
|
@ -33,8 +33,6 @@
|
|||||||
// Purpose of file:
|
// Purpose of file:
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
$NEEDED_ITEMS=array("search");
|
|
||||||
|
|
||||||
define('GLPI_ROOT', '../../..');
|
define('GLPI_ROOT', '../../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
|
5
hook.php
5
hook.php
@ -33,11 +33,6 @@
|
|||||||
// Purpose of file:
|
// Purpose of file:
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
|
||||||
// TODO remove this when autoload ready
|
|
||||||
foreach (glob(GLPI_ROOT . '/plugins/example/inc/*.php') as $file) {
|
|
||||||
include_once ($file);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hook called on profile change
|
// Hook called on profile change
|
||||||
// Good place to evaluate the user right on this plugin
|
// Good place to evaluate the user right on this plugin
|
||||||
// And to save it in the session
|
// And to save it in the session
|
||||||
|
Loading…
x
Reference in New Issue
Block a user