mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #6500 from marc1706/ticket/15687
[ticket/15687] Add attachment filename to attachment URL
This commit is contained in:
@@ -1112,7 +1112,13 @@ class acp_attachments
|
||||
'PHYSICAL_FILENAME' => utf8_basename($row['physical_filename']),
|
||||
'ATTACH_ID' => $row['attach_id'],
|
||||
'POST_ID' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '',
|
||||
'U_FILE' => $this->controller_helper->route('phpbb_storage_attachment', ['file' => (int) $row['attach_id']])
|
||||
'U_FILE' => $this->controller_helper->route(
|
||||
'phpbb_storage_attachment',
|
||||
[
|
||||
'id' => (int) $row['attach_id'],
|
||||
'filename' => $row['real_filename'],
|
||||
]
|
||||
),
|
||||
]);
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
@@ -1302,7 +1308,13 @@ class acp_attachments
|
||||
'S_IN_MESSAGE' => (bool) $row['in_message'],
|
||||
|
||||
'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p={$row['post_msg_id']}") . "#p{$row['post_msg_id']}",
|
||||
'U_FILE' => $this->controller_helper->route('phpbb_storage_attachment', ['file' => $row['attach_id']])
|
||||
'U_FILE' => $this->controller_helper->route(
|
||||
'phpbb_storage_attachment',
|
||||
[
|
||||
'id' => (int) $row['attach_id'],
|
||||
'filename' => $row['real_filename'],
|
||||
]
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
|
@@ -2306,7 +2306,13 @@ class acp_users
|
||||
|
||||
'S_IN_MESSAGE' => $row['in_message'],
|
||||
|
||||
'U_DOWNLOAD' => $controller_helper->route('phpbb_storage_attachment', ['file' => (int) $row['attach_id']]),
|
||||
'U_DOWNLOAD' => $controller_helper->route(
|
||||
'phpbb_storage_attachment',
|
||||
[
|
||||
'id' => (int) $row['attach_id'],
|
||||
'filename' => $row['real_filename'],
|
||||
]
|
||||
),
|
||||
'U_VIEW_TOPIC' => $view_topic)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user