diff options
-rw-r--r-- | include/text.php | 1 | ||||
-rw-r--r-- | view/tpl/alt_pager.tpl | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 05bf2bc7c..aea8790fc 100644 --- a/include/text.php +++ b/include/text.php @@ -586,6 +586,7 @@ function alt_pager($i, $more = '', $less = '') { '$less' => $less, '$more' => $more, '$url' => $url, + '$url_appendix' => ((strpos($url, '?')) ? '&' : '?'), '$prevpage' => App::$pager['page'] - 1, '$nextpage' => App::$pager['page'] + 1, )); diff --git a/view/tpl/alt_pager.tpl b/view/tpl/alt_pager.tpl index 94fa93401..23d57327c 100644 --- a/view/tpl/alt_pager.tpl +++ b/view/tpl/alt_pager.tpl @@ -1,4 +1,4 @@ <div class="pager"> -{{if $has_less}}<a href="{{$url}}?page={{$prevpage}}" class="pager-prev">{{$less}}</a>{{/if}} -{{if $has_more}}{{if $has_less}} | {{/if}}<a href="{{$url}}?page={{$nextpage}}" class="pager-next">{{$more}}</a>{{/if}} +{{if $has_less}}<a href="{{$url}}{{$url_appendix}}page={{$prevpage}}" class="pager-prev">{{$less}}</a>{{/if}} +{{if $has_more}}{{if $has_less}} | {{/if}}<a href="{{$url}}{{$url_appendix}}page={{$nextpage}}" class="pager-next">{{$more}}</a>{{/if}} </div> |