From fbd7caefb10d913f9a430f230cc7b8c3fb4b8969 Mon Sep 17 00:00:00 2001 From: moyooo Date: Sat, 4 Oct 2008 18:37:45 +0000 Subject: [PATCH] [example] force usePLugin in config page for cases of inactive plugins git-svn-id: https://forge.glpi-project.org/svn/example/trunk@55 349b9182-4a13-0410-896f-e5e9767dd1b3 --- config.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index e540bb3..b0f8e5c 100755 --- a/config.php +++ b/config.php @@ -36,15 +36,16 @@ //header("Location:../../central.php"); // Entry menu case -define('GLPI_ROOT', '../..'); +define('GLPI_ROOT', '../..'); include (GLPI_ROOT . "/inc/includes.php"); checkRight("config","w"); commonHeader("TITRE",$_SERVER['PHP_SELF'],"plugins"); - -echo "This is the plugin config page"; - +// To be available when plugin in not activated +usePLugin('example'); +echo "This is the plugin config page
"; +echo $LANG['plugin_example']["test"]; commonFooter(); ?>