1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

news: Fix category link in both breadcrumb and menu

Fixes: #4982
This commit is contained in:
Nick Liu 2023-02-19 23:49:40 +01:00
parent 92bb0519d3
commit a500035172
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class core_news_url extends eUrlConfig
break;
case 'category':
if(!vartrue($params['id']))
if(!vartrue($params['category_id']))
{
$url .= 'default.0.'.$page;
}

View File

@ -999,7 +999,7 @@ class e_news_category_item extends e_front_model
public function sc_news_category_url($parm = '')
{
$url = e107::getUrl()->create('news/list/category', array('id' => $this->getId(), 'name' => $this->cat('sef')));
$url = e107::getUrl()->create('news/list/category', array($this->getFieldIdName() => $this->getId(), 'name' => $this->cat('sef')));
switch($parm)
{
case 'link':