mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
forgot some changes for post_time
git-svn-id: file:///svn/phpbb/trunk@6118 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -485,6 +485,9 @@ class acp_search
|
||||
{
|
||||
global $db;
|
||||
|
||||
/**
|
||||
* @todo what is faster, doing a MAX() or an ORDER BY post_id and LIMIT 1?
|
||||
*/
|
||||
$sql = 'SELECT MAX(post_id) as max_post_id
|
||||
FROM '. POSTS_TABLE;
|
||||
$result = $db->sql_query($sql);
|
||||
|
@@ -54,7 +54,7 @@ function mcp_front_view($id, $mode, $action)
|
||||
FROM ' . POSTS_TABLE . '
|
||||
WHERE forum_id IN (0, ' . implode(', ', $forum_list) . ')
|
||||
AND post_approved = 0
|
||||
ORDER BY post_id DESC';
|
||||
ORDER BY post_time DESC';
|
||||
$result = $db->sql_query_limit($sql, 5);
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
@@ -68,7 +68,7 @@ function mcp_front_view($id, $mode, $action)
|
||||
WHERE p.post_id IN (' . implode(', ', $post_list) . ')
|
||||
AND t.topic_id = p.topic_id
|
||||
AND p.poster_id = u.user_id
|
||||
ORDER BY p.post_id DESC';
|
||||
ORDER BY p.post_time DESC';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
@@ -158,7 +158,7 @@ function mcp_front_view($id, $mode, $action)
|
||||
AND r.user_id = u.user_id
|
||||
AND p.forum_id IN (0, ' . implode(', ', $forum_list) . ')',
|
||||
|
||||
'ORDER_BY' => 'p.post_id DESC'
|
||||
'ORDER_BY' => 'p.post_time DESC'
|
||||
));
|
||||
$result = $db->sql_query_limit($sql, 5);
|
||||
|
||||
|
@@ -809,7 +809,7 @@ function mcp_fork_topic($topic_ids)
|
||||
$sql = 'SELECT *
|
||||
FROM ' . POSTS_TABLE . "
|
||||
WHERE topic_id = $topic_id
|
||||
ORDER BY post_id ASC";
|
||||
ORDER BY post_time ASC";
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$post_rows = array();
|
||||
|
Reference in New Issue
Block a user