diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-10-09 20:08:23 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-10-09 20:08:23 +0200 |
commit | 094536e6339eaba87cc0b372418a50b865fe0a97 (patch) | |
tree | 71f8e1f1d421322dbe52ca631e6bd32bd05e8b43 /include/text.php | |
parent | 4f2a439873d105b91a5dbbd4dc72d2e2183349a8 (diff) | |
parent | 63bdab2b5fd456979587e3c065c274c6475c17b1 (diff) | |
download | volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.tar.gz volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.tar.bz2 volse-hubzilla-094536e6339eaba87cc0b372418a50b865fe0a97.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/text.php b/include/text.php index 7e1dd13c4..1b3a77dba 100644 --- a/include/text.php +++ b/include/text.php @@ -577,11 +577,7 @@ function alt_pager($i, $more = '', $less = '') { if(! $less) $less = t('newer'); - $stripped = preg_replace('/(&page=[0-9]*)/','',App::$query_string); - $stripped = str_replace('q=','',$stripped); - $stripped = trim($stripped,'/'); - //$pagenum = App::$pager['page']; - $url = z_root() . '/' . $stripped; + $url = z_root() . '/' . drop_query_params(App::$query_string, ['page', 'q']); return replace_macros(get_markup_template('alt_pager.tpl'), array( '$has_less' => ((App::$pager['page'] > 1) ? true : false), |