diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-25 11:48:29 +0100 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-25 11:48:29 +0100 |
| commit | 2a7c514cd074352796b3087a8263dcc552a5c807 (patch) | |
| tree | 73b9ee2b956633bb77acf1f3ad23d32c8f44fcda /phpBB/viewtopic.php | |
| parent | 3eb6f7176ac44b5786379162fc73df3abd196646 (diff) | |
| parent | 7f9ba9849b2bd3c97fd9a828ddb46c83199b9c55 (diff) | |
| download | forums-2a7c514cd074352796b3087a8263dcc552a5c807.tar forums-2a7c514cd074352796b3087a8263dcc552a5c807.tar.gz forums-2a7c514cd074352796b3087a8263dcc552a5c807.tar.bz2 forums-2a7c514cd074352796b3087a8263dcc552a5c807.tar.xz forums-2a7c514cd074352796b3087a8263dcc552a5c807.zip | |
Merge branch '3.1.x' into 3.2.x
* 3.1.x:
[ticket/14437] Make sure attachments array is properly ordered before processing
[ticket/14437] Preserve attachment ID order by ordering by attach_id
[ticket/14437] Sort attachments after assigning inline attachments
[ticket/14437] Correctly assume index from attachment display order
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 7757120817..ded0f9aacc 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1482,7 +1482,7 @@ if (sizeof($attach_list)) FROM ' . ATTACHMENTS_TABLE . ' WHERE ' . $db->sql_in_set('post_msg_id', $attach_list) . ' AND in_message = 0 - ORDER BY filetime DESC, post_msg_id ASC'; + ORDER BY attach_id DESC, post_msg_id ASC'; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) |
