mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Issue #2322 News pagination missing category_sef.
This commit is contained in:
@@ -1529,6 +1529,11 @@ class news_front
|
|||||||
{
|
{
|
||||||
$news = $newsAr[$i];
|
$news = $newsAr[$i];
|
||||||
|
|
||||||
|
if(!isset($this->newsUrlparms['category_sef']) && !empty($news['category_sef']))
|
||||||
|
{
|
||||||
|
$this->newsUrlparms['category_sef'] = $news['category_sef'];
|
||||||
|
}
|
||||||
|
|
||||||
// Set the Values for the social shortcode usage.
|
// Set the Values for the social shortcode usage.
|
||||||
if($socialInstalled == true)
|
if($socialInstalled == true)
|
||||||
{
|
{
|
||||||
@@ -1580,6 +1585,7 @@ class news_front
|
|||||||
$amount = ITEMVIEW;
|
$amount = ITEMVIEW;
|
||||||
$nitems = defined('NEWS_NEXTPREV_NAVCOUNT') ? '&navcount='.NEWS_NEXTPREV_NAVCOUNT : '' ;
|
$nitems = defined('NEWS_NEXTPREV_NAVCOUNT') ? '&navcount='.NEWS_NEXTPREV_NAVCOUNT : '' ;
|
||||||
$url = rawurlencode(e107::getUrl()->create($this->route, $this->newsUrlparms));
|
$url = rawurlencode(e107::getUrl()->create($this->route, $this->newsUrlparms));
|
||||||
|
|
||||||
// Example of passing route data instead building the URL outside the shortcode - for a reference only
|
// Example of passing route data instead building the URL outside the shortcode - for a reference only
|
||||||
// $url = rawurlencode('url::'.$newsRoute.'::'.http_build_query($newsUrlparms, null, '&'));
|
// $url = rawurlencode('url::'.$newsRoute.'::'.http_build_query($newsUrlparms, null, '&'));
|
||||||
$parms = 'tmpl_prefix='.deftrue('NEWS_NEXTPREV_TMPL', 'default').'&total='.$news_total.'&amount='.$amount.'¤t='.$this->from.$nitems.'&url='.$url;
|
$parms = 'tmpl_prefix='.deftrue('NEWS_NEXTPREV_TMPL', 'default').'&total='.$news_total.'&amount='.$amount.'¤t='.$this->from.$nitems.'&url='.$url;
|
||||||
|
Reference in New Issue
Block a user