1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-02 04:42:37 +02:00

Move to sql_query_limit

git-svn-id: file:///svn/phpbb/trunk@3686 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-03-20 01:25:59 +00:00
parent f9f6cb194d
commit ab34d6329c
2 changed files with 33 additions and 29 deletions

View File

@@ -270,9 +270,8 @@ if ($forum_data['forum_postable'])
WHERE (t.forum_id = $forum_id
OR t.forum_id = 0)
AND t.topic_type = " . POST_ANNOUNCE . "
ORDER BY $sort_order_sql
LIMIT " . $config['topics_per_page'];
$result = $db->sql_query($sql);
ORDER BY $sort_order_sql";
$result = $db->sql_query_limit($sql, $config['topics_per_page']);
while($row = $db->sql_fetchrow($result))
{
@@ -290,8 +289,7 @@ if ($forum_data['forum_postable'])
" . (($auth->acl_gets('m_approve', 'a_', $forum_id)) ? '' : 'AND t.topic_approved = 1') . "
AND t.topic_type <> " . POST_ANNOUNCE . "
$limit_topics_time
ORDER BY t.topic_type DESC, $sort_order_sql
LIMIT $start, " . $config['topics_per_page'];
ORDER BY t.topic_type DESC, $sort_order_sql";
/* }
else
{
@@ -310,7 +308,7 @@ if ($forum_data['forum_postable'])
AND u2.user_id = t.topic_last_poster_id
ORDER BY $sort_order";
}*/
$result = $db->sql_query($sql);
$result = $db->sql_query_limit($sql, $config['topics_per_page']);
while($row = $db->sql_fetchrow($result))
{