mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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:
parent
275f62a5bd
commit
8c02ad5f86
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue