View | Details | Raw Unified | Return to bug 14779
Collapse All | Expand All

(-)a/reviews/reviewswaiting.pl (-3 / +3 lines)
Lines 41-48 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
41
my $op       = $query->param('op') || '';
41
my $op       = $query->param('op') || '';
42
my $status   = $query->param('status') || 0;
42
my $status   = $query->param('status') || 0;
43
my $reviewid = $query->param('reviewid');
43
my $reviewid = $query->param('reviewid');
44
my $offset   = $query->param('offset') || 0;
44
my $page     = $query->param('page') || 1;
45
my $count    = C4::Context->preference('numSearchResults') || 20;
45
my $count    = C4::Context->preference('numSearchResults') || 20;
46
my $offset   = ($page-1) * $count;
46
my $total    = numberofreviews($status);
47
my $total    = numberofreviews($status);
47
48
48
if ( $op eq 'approve' ) {
49
if ( $op eq 'approve' ) {
Lines 72-78 my $url = "/cgi-bin/koha/reviews/reviewswaiting.pl?status=$status"; Link Here
72
$template->param(
73
$template->param(
73
    status => $status,
74
    status => $status,
74
    reviews => $reviews,
75
    reviews => $reviews,
75
    pagination_bar => pagination_bar( $url, ( int( $total / $count ) ) + ( ( $total % $count ) > 0 ? 1 : 0 ), $offset, "offset" )
76
    pagination_bar => pagination_bar( $url, ( int( $total / $count ) ) + ( ( $total % $count ) > 0 ? 1 : 0 ), $page, "page" )
76
);
77
);
77
78
78
output_html_with_http_headers $query, $cookie, $template->output;
79
output_html_with_http_headers $query, $cookie, $template->output;
79
- 

Return to bug 14779