Skip to content
Snippets Groups Projects
Commit cdf9d6df authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Better filter for mailing modules files

parent 4b40cc75
No related branches found
No related tags found
No related merge requests found
...@@ -194,7 +194,8 @@ if ($mil->fetch($_REQUEST["id"]) >= 0) ...@@ -194,7 +194,8 @@ if ($mil->fetch($_REQUEST["id"]) >= 0)
{ {
if (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS') if (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS')
{ {
if (eregi("(.*)\.(.*)\.(.*)",$file,$reg)) { if (eregi("(.*)\.modules\.php$",$file,$reg))
{
$modulename=$reg[1]; $modulename=$reg[1];
if ($modulename == 'example') continue; if ($modulename == 'example') continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment