Fix: Bad regex
This commit is contained in:
parent
4b3413c84c
commit
1ff175f14e
@ -87,13 +87,13 @@ class InfoBox
|
||||
{
|
||||
if (preg_match('/^([^@]+)@([^@]+)$/i',$obj->file,$regs))
|
||||
{
|
||||
$boxname = preg_replace('/.php$/i','',$regs[1]);
|
||||
$boxname = preg_replace('/\.php$/i','',$regs[1]);
|
||||
$module = $regs[2];
|
||||
$relsourcefile = "/".$module."/core/boxes/".$boxname.".php";
|
||||
}
|
||||
else
|
||||
{
|
||||
$boxname=preg_replace('/.php$/i','',$obj->file);
|
||||
$boxname=preg_replace('/\.php$/i','',$obj->file);
|
||||
$relsourcefile = "/core/boxes/".$boxname.".php";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user