Fix more thread search pagination issues.
This commit is contained in:
parent
261c8b30da
commit
c0206e61f5
4 changed files with 9 additions and 4 deletions
|
|
@ -19,6 +19,7 @@ use WebGUI::International;
|
|||
use WebGUI::Paginator;
|
||||
use WebGUI::SQL;
|
||||
use WebGUI::Utility;
|
||||
use POSIX qw/ceil/;
|
||||
|
||||
our @ISA = qw(WebGUI::Asset::Post);
|
||||
|
||||
|
|
@ -383,7 +384,7 @@ EOSQL
|
|||
}
|
||||
$sth->finish;
|
||||
return $self->get('url') if !$found;
|
||||
my $page = int($place/$page_size) + 1;
|
||||
my $page = ceil($place/$page_size);
|
||||
my $page_frag = 'pn='.$page.';sortBy=lineage;sortOrder=desc';
|
||||
$url = $session->url->append($cs->get('url'), $page_frag);
|
||||
return $url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue