aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/admin_attachments.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/adm/admin_attachments.php')
-rw-r--r--phpBB/adm/admin_attachments.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpBB/adm/admin_attachments.php b/phpBB/adm/admin_attachments.php
index 72980e58f6..2def31433f 100644
--- a/phpBB/adm/admin_attachments.php
+++ b/phpBB/adm/admin_attachments.php
@@ -660,10 +660,13 @@ if ($mode == 'ext_groups')
$imglist = filelist($phpbb_root_path . $img_path, '');
$filename_list = '';
- foreach ($imglist as $img)
+ foreach ($imglist as $path => $img_ary)
{
- $img = substr($img['path'], 1) . (($img['path'] != '') ? '/' : '') . $img['file'];
- $filename_list .= '<option value="' . htmlspecialchars($img) . '">' . $img . '</option>';
+ foreach ($img_ary as $img)
+ {
+ $img = substr($path, 1) . (($path != '') ? '/' : '') . $img;
+ $filename_list .= '<option value="' . htmlspecialchars($img) . '">' . $img . '</option>';
+ }
}
$size = isset($_REQUEST['size']) ? intval($_REQUEST['size']) : 0;