
And I didnt make a backup

Code: Select all
$attachrow_template_vars = array();
Code: Select all
// $attachrow_template_vars = array();
Code: Select all
($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']);
foreach ($attach_row as $key => $value)
{
$hidden .= '<input type="hidden" name="attachment_data[' . $count . '][' . $key . ']" value="' . $value . '" />';
}
No, see: https://github.com/phpbb/phpbb/pull/5082/files1024KBUser wrote: ↑Thu Jan 11, 2018 11:02 pmOK since I dont have shell access I manually changed functions_posting.php, Is this correct ?
Code: Select all
($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']); foreach ($attach_row as $key => $value) { $hidden .= '<input type="hidden" name="attachment_data[' . $count . '][' . $key . ']" value="' . $value . '" />'; }
Code: Select all
// 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 = '';
$attach_row['real_filename'] = utf8_basename($attach_row['real_filename']);
foreach ($attach_row as $key => $value)
{
$hidden .= '<input type="hidden" name="attachment_data[' . $count . '][' . $key . ']" value="' . $value . '" />';
}