From 5b4ec9e316262ed05e83ed56745ee1733eb6553d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 27 Apr 2011 16:01:02 +0000 Subject: [PATCH] Fix bad path --- htdocs/boxes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/boxes.php b/htdocs/boxes.php index 441c73f5b0f..f3d21f9cca5 100644 --- a/htdocs/boxes.php +++ b/htdocs/boxes.php @@ -219,8 +219,7 @@ class InfoBox { $boxname = $regs[1]; $module = $regs[2]; - - dol_include_once("/".$module."/inc/boxes/".$boxname.".php"); + $sourcefile = dol_buildpath("/".$module."/inc/boxes/".$boxname.".php"); } else { @@ -241,7 +240,7 @@ class InfoBox { foreach($box->depends as $module) { - // print $module.'
'; + //print $module.'
'; if (empty($conf->$module->enabled)) $enabled=false; } }