添加两个附件,预览后只剩下一个。
发表于 : 2018年3月26日 19:40
群主好。上个星期我更新了论坛 3.2.2。刚才发现一个问题,就是添加附加时,部分附件丢失。不知道是不是升级的问题。
(每个帖子的附件数设定为10)
请参见视频。
http://tokyoluntan.com/fujian.mp4
谢谢。
(每个帖子的附件数设定为10)
请参见视频。
http://tokyoluntan.com/fujian.mp4
谢谢。
代码: 全选
phpBB/includes/functions_posting.php
@@ -727,10 +727,11 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a
// We display the posted attachments within the desired order.
($config['display_order']) ? krsort($attachment_data) : ksort($attachment_data);
+ $attachrow_template_vars = [];
+
foreach ($attachment_data as $count => $attach_row)
{
$hidden = '';
- $attachrow_template_vars = array();
$attach_row['real_filename'] = utf8_basename($attach_row['real_filename']);