diff options
author | Andreas Fischer <bantu@phpbb.com> | 2009-06-08 22:33:30 +0000 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2009-06-08 22:33:30 +0000 |
commit | 2af8393d0f5fa08b95df989ab879ce1b7d4cab21 (patch) | |
tree | 3ca91808ebbba185ce5f913b0952bdf93cf949b3 /phpBB/includes/functions_admin.php | |
parent | 9f21f1ab5e2b70da18459ef26c14a2372bc0eb76 (diff) | |
download | forums-2af8393d0f5fa08b95df989ab879ce1b7d4cab21.tar forums-2af8393d0f5fa08b95df989ab879ce1b7d4cab21.tar.gz forums-2af8393d0f5fa08b95df989ab879ce1b7d4cab21.tar.bz2 forums-2af8393d0f5fa08b95df989ab879ce1b7d4cab21.tar.xz forums-2af8393d0f5fa08b95df989ab879ce1b7d4cab21.zip |
Fix bug #45705 - Show error in the ACP when template folder is not readable.
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9565 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 79282c0358..a1f34792e0 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -359,7 +359,7 @@ function get_forum_branch($forum_id, $type = 'all', $order = 'descending', $incl */ function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png') { - $matches = array(); + $matches = array($dir => array()); // Remove initial / if present $rootdir = (substr($rootdir, 0, 1) == '/') ? substr($rootdir, 1) : $rootdir; |