Fix: Exclude index page from list

This commit is contained in:
Laurent Destailleur
2012-02-12 13:41:09 +01:00
parent 3f5bbdd749
commit d78192040b

View File

@@ -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);