fix CS sorting by rating

This commit is contained in:
Graham Knop 2007-09-20 11:15:44 +00:00
parent 1b93bc56b8
commit 40d1751913
2 changed files with 5 additions and 0 deletions

View file

@ -938,6 +938,10 @@ sub getThreadsPaginator {
}
$sortBy ||= "dateUpdated";
$sortOrder ||= "desc";
# Sort by the thread rating instead of the post rating. other places don't care about threads.
if ($sortBy eq 'rating') {
$sortBy = 'threadRating';
}
my $sql = "
select