Fix: Loading of boxes from external modules
This commit is contained in:
parent
a1a8fac25c
commit
7dc984fd6f
@ -87,7 +87,7 @@ class InfoBox
|
|||||||
{
|
{
|
||||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$obj->file,$regs))
|
if (preg_match('/^([^@]+)@([^@]+)$/i',$obj->file,$regs))
|
||||||
{
|
{
|
||||||
$boxname = $regs[1];
|
$boxname = preg_replace('/.php$/i','',$regs[1]);
|
||||||
$module = $regs[2];
|
$module = $regs[2];
|
||||||
$relsourcefile = "/".$module."/core/boxes/".$boxname.".php";
|
$relsourcefile = "/".$module."/core/boxes/".$boxname.".php";
|
||||||
}
|
}
|
||||||
@ -135,7 +135,8 @@ class InfoBox
|
|||||||
foreach($box->depends as $module)
|
foreach($box->depends as $module)
|
||||||
{
|
{
|
||||||
//print $boxname.'-'.$module.'<br>';
|
//print $boxname.'-'.$module.'<br>';
|
||||||
if (empty($conf->$module->enabled)) $enabled=0;
|
$tmpmodule=preg_replace('/@[^@]+/','',$module);
|
||||||
|
if (empty($conf->$tmpmodule->enabled)) $enabled=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user