From ebd85318d63e55beaf60508ed0a09488ce9d8449 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 30 Jun 2022 19:03:07 -0700 Subject: [PATCH] Issue #4805 - News pagination fix. --- e107_core/shortcodes/batch/news_shortcodes.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index 3ae088d86..0ae766c76 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -1207,16 +1207,8 @@ class news_shortcodes extends e_shortcode { $params = (string) e107::getRegistry('core/news/pagination'); - parse_str($params,$opts); - if($this->pagination === 'page') - { - $opts['type'] = 'page'; - $opts['total'] = ceil($opts['total'] / $opts['amount']); - $opts['current'] = ($opts['current'] / $opts['amount']) + 1; - } - - return e107::getParser()->parseTemplate("{NEXTPREV=".http_build_query($opts)."}"); + return e107::getParser()->parseTemplate("{NEXTPREV=".$params."}"); }