Thread ordering by date instead of postId. (In compliance with GUIDs)
This commit is contained in:
parent
17b968a888
commit
c975503292
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ sub getReplies {
|
|||
} else {
|
||||
$query .= "(status='approved'";
|
||||
}
|
||||
$query .= " or userId=".quote($session{user}{userId}).") order by forumPostId";
|
||||
$query .= " or userId=".quote($session{user}{userId}).") order by dateOfPost";
|
||||
my $sth = WebGUI::SQL->read($query,WebGUI::SQL->getSlave);
|
||||
while (my @data = $sth->array) {
|
||||
push(@replies,WebGUI::Forum::Post->new($data[0]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue