mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 17:09:46 +01:00
Issue #2322 News pagination missing category_sef.
This commit is contained in:
parent
534646394f
commit
79616af04c
@ -1529,6 +1529,11 @@ class news_front
|
||||
{
|
||||
$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.
|
||||
if($socialInstalled == true)
|
||||
{
|
||||
@ -1580,6 +1585,7 @@ class news_front
|
||||
$amount = ITEMVIEW;
|
||||
$nitems = defined('NEWS_NEXTPREV_NAVCOUNT') ? '&navcount='.NEWS_NEXTPREV_NAVCOUNT : '' ;
|
||||
$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
|
||||
// $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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user