Fix: Bad regex

This commit is contained in:
Laurent Destailleur 2013-06-03 12:46:25 +02:00
parent 4b3413c84c
commit 1ff175f14e

View File

@ -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";
}