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

Fix: Exclude index page from list

parent 3f5bbdd7
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,7 @@ class FormAdmin
{
while (($file = readdir($handle))!==false)
{
if (is_file($dir."/".$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS')
if (is_file($dir."/".$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS' && substr($file, 0, 5) != 'index')
{
if (preg_match('/lib\.php$/i',$file)) continue; // We exclude library files
$filelib=preg_replace('/\.php$/i','',$file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment