forked from Cavemanon/cavepaintings
for postgres support
git-svn-id: file:///home/shish/svn/shimmie2/trunk@923 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@@ -203,9 +203,9 @@ class CommentList extends Extension {
|
|||||||
FROM comments
|
FROM comments
|
||||||
GROUP BY image_id
|
GROUP BY image_id
|
||||||
ORDER BY latest DESC
|
ORDER BY latest DESC
|
||||||
LIMIT ?,?
|
LIMIT ? OFFSET ?
|
||||||
";
|
";
|
||||||
$result = $database->Execute($get_threads, array($start, $threads_per_page));
|
$result = $database->Execute($get_threads, array($threads_per_page, $start));
|
||||||
|
|
||||||
$total_pages = (int)($database->db->GetOne("SELECT COUNT(distinct image_id) AS count FROM comments") / 10);
|
$total_pages = (int)($database->db->GetOne("SELECT COUNT(distinct image_id) AS count FROM comments") / 10);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user