diff --git a/front/dropdown.php b/front/dropdown.php index af42492..4a4d842 100644 --- a/front/dropdown.php +++ b/front/dropdown.php @@ -34,8 +34,6 @@ // ---------------------------------------------------------------------- -$NEEDED_ITEMS = array ('search'); - define('GLPI_ROOT', '../../..'); include (GLPI_ROOT . "/inc/includes.php"); diff --git a/front/example.php b/front/example.php index e11796b..262186c 100755 --- a/front/example.php +++ b/front/example.php @@ -33,8 +33,6 @@ // Purpose of file: // ---------------------------------------------------------------------- -$NEEDED_ITEMS=array("search"); - define('GLPI_ROOT', '../../..'); include (GLPI_ROOT . "/inc/includes.php"); diff --git a/hook.php b/hook.php index a230231..27e12d5 100644 --- a/hook.php +++ b/hook.php @@ -33,11 +33,6 @@ // 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 // Good place to evaluate the user right on this plugin // And to save it in the session