diff options
author | Mario <mario@mariovavti.com> | 2022-01-27 21:10:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-27 21:10:13 +0000 |
commit | b13a9f57aff3e455901ba51e3fc26abfb8d89aca (patch) | |
tree | 05caa1fd4b870f7eab392cd6d96b617bad8a36da | |
parent | 0aa67ad7f9f8aac8691962171a9d69e0a521a15f (diff) | |
download | volse-hubzilla-b13a9f57aff3e455901ba51e3fc26abfb8d89aca.tar.gz volse-hubzilla-b13a9f57aff3e455901ba51e3fc26abfb8d89aca.tar.bz2 volse-hubzilla-b13a9f57aff3e455901ba51e3fc26abfb8d89aca.zip |
fix for #1659
-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> |