mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
Add forum ordering to Index
git-svn-id: file:///svn/phpbb/trunk@68 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -66,11 +66,11 @@ if($total_categories)
|
|||||||
$limit_forums = " WHERE f.cat_id = $viewcat ";
|
$limit_forums = " WHERE f.cat_id = $viewcat ";
|
||||||
}
|
}
|
||||||
$sql = "SELECT f.*, u.username, u.user_id, p.post_time
|
$sql = "SELECT f.*, u.username, u.user_id, p.post_time
|
||||||
FROM ".FORUMS_TABLE." f
|
FROM ".FORUMS_TABLE." f
|
||||||
LEFT JOIN ".POSTS_TABLE." p ON p.post_id = f.forum_last_post_id
|
LEFT JOIN ".POSTS_TABLE." p ON p.post_id = f.forum_last_post_id
|
||||||
LEFT JOIN ".USERS_TABLE." u ON u.user_id = p.poster_id
|
LEFT JOIN ".USERS_TABLE." u ON u.user_id = p.poster_id
|
||||||
$limit_forums
|
$limit_forums
|
||||||
ORDER BY f.forum_id";
|
ORDER BY f.cat_id, f.forums_order";
|
||||||
if(!$q_forums = $db->sql_query($sql))
|
if(!$q_forums = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
error_die($db, QUERY_ERROR);
|
error_die($db, QUERY_ERROR);
|
||||||
|
Reference in New Issue
Block a user