aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-08-20 14:50:40 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-08-20 14:50:40 +0000
commit74879efcb5c8af253c1d4bdbe97c8065681a1778 (patch)
tree5b1ee7dc1686caa2b0f4c76212c568a249c1dd7b /phpBB/viewtopic.php
parent20ace274d6b6d370fde9aad6d85cc57740fcfbf1 (diff)
downloadforums-74879efcb5c8af253c1d4bdbe97c8065681a1778.tar
forums-74879efcb5c8af253c1d4bdbe97c8065681a1778.tar.gz
forums-74879efcb5c8af253c1d4bdbe97c8065681a1778.tar.bz2
forums-74879efcb5c8af253c1d4bdbe97c8065681a1778.tar.xz
forums-74879efcb5c8af253c1d4bdbe97c8065681a1778.zip
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
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index e743a92651..ed4b60cf2c 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -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