From f33753092c7865cc61a8e81960ae6e754d568e57 Mon Sep 17 00:00:00 2001 From: remicollet Date: Tue, 8 Dec 2009 21:04:24 +0000 Subject: [PATCH] clean for autoload git-svn-id: https://forge.glpi-project.org/svn/example/trunk@112 349b9182-4a13-0410-896f-e5e9767dd1b3 --- front/dropdown.php | 2 -- front/example.php | 2 -- hook.php | 5 ----- 3 files changed, 9 deletions(-) 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