Fix: Exclude index page from list
This commit is contained in:
parent
3f5bbdd749
commit
d78192040b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue