# HG changeset patch # User Dan # Date 1260155102 18000 # Node ID e3fb74e3e74ee4a79f2f7535b817dd9f11a121b2 # Parent 8f0cbce6d5f3949ad03e488bee4d93f89a2b0379 PostgreSQL: Fixed another bug, this time in the log fetch code diff -r 8f0cbce6d5f3 -r e3fb74e3e74e includes/log.php --- a/includes/log.php Sun Dec 06 21:56:46 2009 -0500 +++ b/includes/log.php Sun Dec 06 22:05:02 2009 -0500 @@ -163,7 +163,7 @@ $columns = ( $just_page_count ) ? 'COUNT(*)' : 'log_id, action, page_id, namespace, CHAR_LENGTH(page_text) AS revision_size, author, time_id, edit_summary, minor_edit'; $sql = 'SELECT ' . $columns . ' FROM ' . table_prefix . "logs AS l\n" . " WHERE log_type = 'page' AND is_draft != 1$where_extra\n" - . ( $just_page_count ? '' : " GROUP BY log_id, action, page_id, namespace, page_text, author, time_id, edit_summary, minor_edit\n" ) + . " GROUP BY log_id, action, page_id, namespace, page_text, author, time_id, edit_summary, minor_edit\n" . " ORDER BY time_id DESC $limit;"; return $sql;