filelist changes ... do away with static type

git-svn-id: file:///svn/phpbb/trunk@4326 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-07-24 13:59:35 +00:00
parent 275f62a5bd
commit 8c02ad5f86

View file

@ -158,8 +158,8 @@ function get_forum_branch($forum_id, $type = 'all', $order = 'descending', $incl
}
function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png')
{
static $matches = array();
{
$matches = array();
$dh = opendir($rootdir . $dir);
@ -173,7 +173,7 @@ function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png')
}
else if ($fname{0} != '.' && is_dir($rootdir . $dir . '/' . $fname))
{
filelist($rootdir, $dir . '/'. $fname, $type);
$matches += filelist($rootdir, $dir . '/'. $fname, $type);
}
}