mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Sort private messages by message time and not message id. (Bug #50015)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10035 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -907,6 +907,7 @@ else
|
||||
$direction = (($sort_dir == 'd') ? 'DESC' : 'ASC');
|
||||
$sql_start = $start;
|
||||
}
|
||||
|
||||
if (is_array($sort_by_sql[$sort_key]))
|
||||
{
|
||||
$sql_sort_order = implode(' ' . $direction . ', ', $sort_by_sql[$sort_key]) . ' ' . $direction;
|
||||
@@ -916,7 +917,6 @@ else
|
||||
$sql_sort_order = $sort_by_sql[$sort_key] . ' ' . $direction;
|
||||
}
|
||||
|
||||
|
||||
// Container for user details, only process once
|
||||
$post_list = $user_cache = $id_cache = $attachments = $attach_list = $rowset = $update_count = $post_edit_list = array();
|
||||
$has_attachments = $display_notice = false;
|
||||
@@ -1604,7 +1604,7 @@ if ($topic_data['topic_type'] == POST_GLOBAL)
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$topic_data['forum_last_post_time'] = (int) $db->sql_fetchfield('forum_last_post_time');
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
|
||||
$sql = 'SELECT mark_time as forum_mark_time
|
||||
FROM ' . FORUMS_TRACK_TABLE . '
|
||||
WHERE forum_id = 0
|
||||
|
Reference in New Issue
Block a user