Fix: Exclude index from menu list

This commit is contained in:
Laurent Destailleur 2012-02-12 13:42:14 +01:00
parent ee18956408
commit e70162e8bb

View File

@ -149,7 +149,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);