summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Plugin/Paginate.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail/Plugin/Paginate.pm')
-rw-r--r--lib/JWebmail/Plugin/Paginate.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/JWebmail/Plugin/Paginate.pm b/lib/JWebmail/Plugin/Paginate.pm
index 9b39617..b4564b7 100644
--- a/lib/JWebmail/Plugin/Paginate.pm
+++ b/lib/JWebmail/Plugin/Paginate.pm
@@ -79,11 +79,11 @@ sub paginate {
}
sub make_link {
- my ($c, $txt, $to) = @_;
+ my ($c, $txt, $to, %args) = @_;
return $c->link_to(
$txt => $c->url_with->query({start => $c->stash('pgn')->{$to}[0]}),
- class => ($c->param('start')//0) == $c->stash('pgn')->{$to}[0] ? 'disabled' : '',
+ class => ($c->param('start')//0) == $c->stash('pgn')->{$to}[0] ? join(' ', $args{class}, $args{class_disabled}) : $args{class},
);
}