Fix bad path
This commit is contained in:
parent
7576726a31
commit
5b4ec9e316
@ -219,8 +219,7 @@ class InfoBox
|
|||||||
{
|
{
|
||||||
$boxname = $regs[1];
|
$boxname = $regs[1];
|
||||||
$module = $regs[2];
|
$module = $regs[2];
|
||||||
|
$sourcefile = dol_buildpath("/".$module."/inc/boxes/".$boxname.".php");
|
||||||
dol_include_once("/".$module."/inc/boxes/".$boxname.".php");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -241,7 +240,7 @@ class InfoBox
|
|||||||
{
|
{
|
||||||
foreach($box->depends as $module)
|
foreach($box->depends as $module)
|
||||||
{
|
{
|
||||||
// print $module.'<br>';
|
//print $module.'<br>';
|
||||||
if (empty($conf->$module->enabled)) $enabled=false;
|
if (empty($conf->$module->enabled)) $enabled=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user